REBOL Programming/cp

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

USAGE:[edit]

CP value /part range /deep 

DESCRIPTION:[edit]

Returns a copy of a value.

CP is an action value.

ARGUMENTS[edit]

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

REFINEMENTS[edit]

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

cp: 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."
]

{{BookCat}}