Take

angerangel edited this page Jan 7, 2013 · 1 revision
Clone this wiki locally

USAGE

   TAKE series /part length /deep /last

DESCRIPTION

Removes and returns one or more elements.

TAKE is an action value.

ARGUMENTS

  • series -- At position (modified) (series! port! gob! none!)

REFINEMENTS

  • /part -- Specifies a length or end position
    • length (number! series! pair!)
  • /deep -- Also copies series values within the block
  • /last -- Take it from the tail end

#SOURCE

take: make action! [  [
    "Removes and returns one or more elements."
    series [series! port! gob! none!] "At position (modified)"
    /part "Specifies a length or end position"
    length [number! series! pair!]
    /deep "Also copies series values within the block"
    /last "Take it from the tail end"
] ]