Forskip

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

USAGE

   FORSKIP 'word size body

DESCRIPTION

Evaluates a block for periodic values in a series.

FORSKIP is a native value.

ARGUMENTS

  • word -- Word that refers to the series, set to each position in series (word!)
  • size -- Number of positions to skip each time (integer! decimal!)
  • body -- Block to evaluate each time (block!)

#SOURCE

forskip: make native! [  [
    "Evaluates a block for periodic values in a series."
    'word [word!] {Word that refers to the series, set to each position in series}
    size [integer! decimal!] "Number of positions to skip each time"
    body [block!] "Block to evaluate each time"
    /local orig result
] ]