forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Insert
angerangel edited this page Mar 19, 2013
·
1 revision
INSERT series value /part length /only /dup count
Inserts element(s); for series, returns just past the insert.
INSERT is an action value.
- series -- At position (modified) (series! port! map! gob! object! bitset! port!)
- value -- The value to insert (any-type!)
-
/part -- Limits to a given length or position
- length (number! series! pair!)
- /only -- Only insert a block as a single value (not the contents of the block)
-
/dup -- Duplicates the insert a specified number of times
- count (number! pair!)
#SOURCE
insert: make action! [ [
{Inserts element(s); for series, returns just past the insert.}
series [series! port! map! gob! object! bitset! port!] "At position (modified)"
value [any-type!] "The value to insert"
/part "Limits to a given length or position"
length [number! series! pair!]
/only {Only insert a block as a single value (not the contents of the block)}
/dup "Duplicates the insert a specified number of times"
count [number! pair!]
] ]