< Rebol Programming

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

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.