[REBOL] Re: Limiting Serie sizes (native!)
From: maximo:meteorstudios at: 13-Aug-2003 11:41
If it where added it would have to be something off by default...
also, It'd have to be appended as a refinament in all series based functions (like the
and setting /limit to none would allow the block to grow once more...
BUT you can already easily clip length after
> list: [1 2 3 4 5 6 7 8 9 0]
> head clear at list 4
== [1 2 3]
maybe this function helps in what you want to acheive?
clipped-append: function [series data maxlen][
return all [((length? series) < maxlen ) (append series data)] ; or call throw if you
want an error
meteor Studios, T.D.
Never Argue with an idiot. They will bring you down to their level and beat you with