Last modified on 27 October 2012, at 22:16

REBOL Programming/change

USAGE:Edit

CHANGE series value /part range /only /dup count 

DESCRIPTION:Edit

Changes a value in a series and returns the series after the change.

CHANGE is an action value.

ARGUMENTSEdit

  • series -- Series at point to change (Type: series port)
  • value -- The new value (Type: any-type)

REFINEMENTSEdit

  • /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 CODEEdit

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!]
]

{{BookCat}}