Reduce

Function

Reduce(array, itemFunction, aggregateFunction)

array
itemFunction
aggregateFunction

Reduce(array, initialValue, aggregateFunction)

array
initialValue
aggregateFunction

You can refer to this function in any formula, macro, module, or other script in Blockpad. You can use either its name or its full path:

  • To refer to it by name, use Reduce(...) (make sure the library Library.Scripts is included with Include Libaries)
  • To refer to it by its full path, use Library.Scripts.Reduce(...)

 

See also: