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(or indices) to amend
* <code>y</code> is the index(or indices) to amend
* <code>z</code>(optional), is the function to apply to those indices
* <code>f</code>(optional), is the function to apply to those indices
* <code>u</code> is the second argument to <code>z</code>
* <code>z</code> is the second argument to <code>z</code>


3 argument amend always acts as an element replacement function, since <code>z</code> is [[right|<code>:</code>]] if it is omitted.
3 argument amend always acts as an element replacement function, since <code>z</code> is [[right|<code>:</code>]] if it is omitted.