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