Pipeline functions

  map
map<functionName>(__iterable); function functionName(__value) {} Description Apply a function to each element of a collection (or other iterable variable). Returns an iterable containing the values returned by the applied function.  The function argument should be a function acc...
 Tue, 28 Aug, 2018 at 4:39 PM
  filter
filter<functionName>(__iterable); function functionName(__value) {} Description Filters an iterable according to a function. Returns an iterable containing all elements for which the function returned true. The function argument should be a function accepting a single argument. ...
 Tue, 28 Aug, 2018 at 4:40 PM
  peek
peek<functionName>(__iterable); function functionName(__value) {} Description Call a function for each element in an iterable. This returns an unchanged iterable.  The function argument should be a function accepting a single argument. When the argument to peek is an OBJECT, the ...
 Wed, 21 Nov, 2018 at 3:16 PM
  reduce
reduce<functionName>(__initial, __iterable); function functionName(__accumulator, __element) {} Description Apply a function to each element of an iterable, reducing it to a single value. Returns the single resulting value (the last accumulator value).  The function argument should...
 Tue, 28 Aug, 2018 at 4:41 PM
  collect
collect(__iterable); Description Build a LIST from an iterable. Example use System; var inputs = [1,2,3,4,5,6,7,8,9,10]; var even = filter<isEven>(inputs); var elements = collect(even); // Transforms iterable into list System.print(elements); ...
 Tue, 28 Aug, 2018 at 4:41 PM
  consume
consume(__iterable); Description Evaluate every element in an iterable and return the number of consumed elements. Example use System; var inputs = [1,2,3,4,5,6,7,8,9,10]; // Not yet evaluated var peeks = peek<print>(inputs); // Evaluation happens here: 1-10 is printe...
 Tue, 28 Aug, 2018 at 4:41 PM
  foreach
foreach<functionName>(__iterable); function functionName(__value) {} Description Call a function for each element of an iterable, ignoring the return value of the function. The function argument should be a function accepting a single argument. When the argument to foreach is an ...
 Tue, 28 Aug, 2018 at 4:42 PM