Deep amend: Difference between revisions
Content added Content deleted
(Created page with "{{primitive|.[x;y[;f];z]}} '''Deep Amend''', also known as '''dmend''' or '''drill''' is a deep version of Amend which allows modification of elements which are nested de...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{primitive|.[x;y[;f];z]}} |
{{primitive|.[x;y[;f];z]}} |
||
'''Deep Amend''', also known as '''dmend''' or '''drill''' is a deep version of [[Amend]] which allows modification of elements which are nested deep |
'''Deep Amend''', also known as '''dmend''' or '''drill''' is a deep version of [[Amend]] which allows modification of elements which are nested deep inside an array. |
||
inside an array. |
|||
Deep Amend takes 3 or 4 arguments, where: |
Deep Amend takes 3 or 4 arguments, where: |
Revision as of 06:00, 26 November 2021
Deep amend
.[x;y[;f];z]
Deep Amend, also known as dmend or drill is a deep version of Amend which allows modification of elements which are nested deep inside an array.
Deep Amend takes 3 or 4 arguments, where:
x
is an array to amendy
is the index route to amendz
(optional), is the function to apply to those indicesu
is the second argument toz
It is very similar to Amend in its functionality. The main difference is that y
when given an array indexes into subarrays when used.
ngn/k
ngn/k's amend has z
as the optional argument, instead of having f
as an optional argument.