Difference between revisions of "Array.$CELLS()"

From ZCubes Wiki
Jump to navigation Jump to search
 
Line 8: Line 8:
 
Apply a function (first parameter), to cell addresses (last parameter as an array), with all other as parameters, and return the array.
 
Apply a function (first parameter), to cell addresses (last parameter as an array), with all other as parameters, and return the array.
  
 +
<pre>
 
a=|4|.fillwith(1..100);
 
a=|4|.fillwith(1..100);
  
 
a.$CELLS(SIN,[0,1,2,2])
 
a.$CELLS(SIN,[0,1,2,2])
 
+
</pre>
 +
<pre>
 
1 0.9092974268256817 0.1411200080598672 4
 
1 0.9092974268256817 0.1411200080598672 4
  
Line 19: Line 21:
  
 
13 14 15 16
 
13 14 15 16
 +
</pre>

Latest revision as of 10:30, 4 February 2020


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

Apply a function (first parameter), to cell addresses (last parameter as an array), with all other as parameters, and return the array.

a=|4|.fillwith(1..100);

a.$CELLS(SIN,[0,1,2,2])
1	0.9092974268256817	0.1411200080598672	4

5	-0.27941549819892586	0.6569865987187891	8

9	10	11	12

13	14	15	16