411 REFERENCE · Wikibooks
Rebol Programming/change
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
USAGE:
CHANGE series value /part range /only /dup count
DESCRIPTION:
Changes a value in a series and returns the series after the change.
CHANGE is an action value.
ARGUMENTS
series -- Series at point to change (Type: series port)
value -- The new value (Type: any-type)
REFINEMENTS
/part -- Limits the amount to change to a given length or position.
range -- (Type: number series port pair)
/only -- Changes a series as a series.
/dup -- Duplicates the change a specified number of times.
count -- (Type: number pair)
SOURCE CODE
change: native[
{Changes a value in a series and returns the series after the change.}
series [series! port!] "Series at point to change"
value [any-type!] "The new value"
/part {Limits the amount to change to a given length or position.}
range [number! series! port! pair!]
/only "Changes a series as a series."
/dup "Duplicates the change a specified number of times."
count [number! pair!]
]