Rebol 编程/change
外观
< Rebol 编程
CHANGE series value /part range /only /dup count
在序列中更改一个值,并在更改后返回序列。
CHANGE 是一个动作值。
- series -- 要更改的序列的点 (类型:series port)
- value -- 新值 (类型:any-type)
- /part -- 将更改量限制为给定长度或位置。
- range -- (类型:number series port pair)
- /only -- 将序列更改为序列。
- /dup -- 将更改复制指定的次数。
- count -- (类型:number pair)
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!] ]