Sunday, October 17, 2004, 3:11:38 PM, Lethalman wrote:

> Andreas Bolka wrote:

>>Sunday, October 17, 2004, 2:56:17 PM, Lethalman wrote:

>>>Is there a function like append but that insert a value at the
>>>beginning of another one?

>>insert

> Ehm, es i found it but i didn't understand how to use it, made
> several tests... My english is not so good sorry :(

>> c: copy []
== []
>> insert c "test 2"
== []
>> c
== ["test 2"]
>> insert c "test"
== ["test 2"]
>> c
== ["test" "test 2"]


please note that insert returns the series (the block) at the position
_after_ the inserted item (that's the reason why the 2nd statement in
the above example returns a seemingly empty block).

-- 
Best regards,
 Andreas


-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to