Array.$()

From ZCubes Wiki
Revision as of 15:40, 30 December 2016 by Joseph (talk | contribs) (Created page with "Array.$(Function|Array of Functions[,param1,param2,...]) This returns the result of each element of the Array being operated on by the function or array of functions passed....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Array.$(Function|Array of Functions[,param1,param2,...])

This returns the result of each element of the Array being operated on by the function or array of functions passed. The parameters provided following the function/function array is passed to the function with each element as the first parameter.

For example, 1..10.$(SIN)

0.8414709848078965
0.9092974268256817
0.1411200080598672
-0.7568024953079282
-0.9589242746631385
-0.27941549819892586
0.6569865987187891
0.9893582466233818
0.4121184852417566
-0.5440211108893698


1..10.$(CHIDIST,5)

0.9625657732472964
0.8491450360846097
0.6999858358786275
0.5494159513527801
0.4158801869955078
0.30621891841327864
0.22064030793671074
0.15623562757772202
0.10906415794977253
0.07523524614651178