Rebol Programming/copy

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

COPY value /part range /deep 

DESCRIPTION:[edit | edit source]

Returns a copy of a value.

COPY is an action value.

ARGUMENTS[edit | edit source]

  • value -- Usually a series (Type: series port bitset)

REFINEMENTS[edit | edit source]

  • /part -- Limits to a given length or position.
    • range -- (Type: number series port pair)
  • /deep -- Also copies series values within the block.

SOURCE CODE[edit | edit source]

copy: native[
    "Returns a copy of a value." 
    value [series! port! bitset!] "Usually a series" 
    /part "Limits to a given length or position." 
    range [number! series! port! pair!] 
    /deep "Also copies series values within the block."
]