Difference between revisions of "Manuals/calci/ARRAYFY"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "==ARRAYFY(function,argumentmask)== ==Description== *Arrayfies a function to allow it to handle array parameters. Argumentmask is an array that indicates which of the paramete...")
 
Line 3: Line 3:
 
==Description==
 
==Description==
 
*Arrayfies a function to allow it to handle array parameters. Argumentmask is an array that indicates which of the parameters should be treated as a single array, rather than be used to invoke combinatorial arguments.
 
*Arrayfies a function to allow it to handle array parameters. Argumentmask is an array that indicates which of the parameters should be treated as a single array, rather than be used to invoke combinatorial arguments.
 +
 +
*functionname⩨argumentmask also invokes the same function (e.g., distance ⩨ or distance ⩨[1])
  
 
==Examples==
 
==Examples==

Revision as of 14:13, 4 February 2020

ARRAYFY(function,argumentmask)

Description

  • Arrayfies a function to allow it to handle array parameters. Argumentmask is an array that indicates which of the parameters should be treated as a single array, rather than be used to invoke combinatorial arguments.
  • functionname⩨argumentmask also invokes the same function (e.g., distance ⩨ or distance ⩨[1])

Examples

distance:=speed*time;

ARRAYFY(distance)

distance(1..2,2..3)

speed time distance

1 2 2

1 3 3

2 2 4

2 3 6

See Also


References