aboutsummaryrefslogtreecommitdiff
path: root/doc/leading.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-08-16 22:14:53 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-08-16 22:14:53 -0400
commitbda30287098ab9002bc4d3e8290ed06c21abec28 (patch)
tree17e2c7599c0f2af08accab4363728a4ae2dbbd21 /doc/leading.md
parent144854e542f6f853d10d9efed95de2d1a5025758 (diff)
Add document on Solo, Couple, and Merge
Diffstat (limited to 'doc/leading.md')
-rw-r--r--doc/leading.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/leading.md b/doc/leading.md
index 95fde0fa..35d72295 100644
--- a/doc/leading.md
+++ b/doc/leading.md
@@ -28,7 +28,7 @@ In these three cases above, the results are the same as you would get from trans
∾˝ a # Join the cells
∾˝˘ a # Join-insert is a no-op on lists
-Solo (`≍`), something of a maverick, manages to act on *zero* leading axes of its argument by creating the first axis of the *result* instead. Because it doesn't need any axis to work, it can go in front of either axis but also past the last one by working with rank 0, a case where most array functions would give an error.
+[Solo](couple.md) (`≍`), something of a maverick, manages to act on *zero* leading axes of its argument by creating the first axis of the *result* instead. Because it doesn't need any axis to work, it can go in front of either axis but also past the last one by working with rank 0, a case where most array functions would give an error.
≢ ≍ a # Solo adds a length-1 axis
a ≡ ⊏ ≍ a # First Cell undoes this
@@ -59,7 +59,7 @@ The Each (`¨`) and Table (`⌜`) modifiers return functions which are the same
## Dyadic functions
-For dyadic functions the pattern of working on only one argument axis is not so common. Only two functions can be said to follow it roughly: Join to (`∾`) combines two arrays along one axis, using the first axis of both arguments if they have the same rank and of the higher-rank argument if they differ by one. Couple (`≍`), like Solo, does not manipulate the argument axes but adds a result axis. There are also some functions that can't be limited to leading axes: Reshape (`⥊`) treats the argument as one long list, and Pick (`⊑`) requires each index to be as long as the right argument's rank, because it selects elements and not cells from the right argument.
+For dyadic functions the pattern of working on only one argument axis is not so common. Only two functions can be said to follow it roughly: Join to (`∾`) combines two arrays along one axis, using the first axis of both arguments if they have the same rank and of the higher-rank argument if they differ by one. [Couple](couple.md) (`≍`), like Solo, does not manipulate the argument axes but adds a result axis. There are also some functions that can't be limited to leading axes: Reshape (`⥊`) treats the argument as one long list, and Pick (`⊑`) requires each index to be as long as the right argument's rank, because it selects elements and not cells from the right argument.
### Multiple axes