Deep amend: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
* <code>x</code> is an array to amend |
* <code>x</code> is an array to amend |
||
* <code>y</code> is the index route to amend |
* <code>y</code> is the index route to amend |
||
* <code>z</code> |
* <code>z</code> is the function to apply to those indices |
||
* <code>u</code> is the second argument to <code>z</code> |
* <code>u</code> (optional), is the second argument to <code>z</code> |
||
It is very similar to [[Amend]] in its functionality. The main difference is that <code>y</code> when given an array indexes into subarrays when used. |
It is very similar to [[Amend]] in its functionality. The main difference is that <code>y</code> when given an array indexes into subarrays when used. |
||
<pre> .[3 3#!9;1 1;-:] |
|||
0 1 2 |
|||
3 -4 5 |
|||
6 7 8</pre> |
|||
== ngn/k == |
== ngn/k == |