From 6408f52bdb80b0b79191675481bf59739ec3ad5b Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sat, 5 Sep 2020 12:56:39 -0400 Subject: =?UTF-8?q?Prefer=20=CB=99=20to=20=CB=9C=20for=20constant=20functi?= =?UTF-8?q?ons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/primitive.md | 2 +- doc/transpose.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/primitive.md b/doc/primitive.md index 527312ab..09a819d2 100644 --- a/doc/primitive.md +++ b/doc/primitive.md @@ -53,7 +53,7 @@ Functions that have significant differences from APL functions are marked with a ## Modifiers -*Combinators* only control the application of functions. Because a non-function operand applies as a constant function, some combinators have extra meanings when passed a constant. For example, `0˜` is the constant function that always returns 0 and `0⊸<` is the function that tests whether its right argument is greater than 0. +*Combinators* only control the application of functions. Because a non-function operand applies as a constant function, some combinators have extra meanings when passed a constant. For example, `0˜` is identical to `0˙`—a constant function that always returns 0—and `0⊸<` is the function that tests whether its right argument is greater than 0. Glyph | Name(s) | Definition | Description ------|-------------|--------------------------------|--------------------------------------- diff --git a/doc/transpose.md b/doc/transpose.md index ae72d889..1a870347 100644 --- a/doc/transpose.md +++ b/doc/transpose.md @@ -68,13 +68,13 @@ In particular, the case with only one argument specified is interesting. Here, t ≢ 2 ⍉ a23456 # Restrict Transpose to the first three axes -Finally, it's worth noting that, as monadic Transpose moves the first axis to the end, it's equivalent to dyadic Transpose with a "default" left argument: `(=-1˜)⊸⍉`. +Finally, it's worth noting that, as monadic Transpose moves the first axis to the end, it's equivalent to dyadic Transpose with a "default" left argument: `(=-1˙)⊸⍉`. ## Definitions Here we define the two valences of Transpose more precisely. -Monadic transpose is identical to `(=-1˜)⊸⍉`, except that for scalar arguments (including atoms) it returns the array unchanged rather than giving an error. +Monadic transpose is identical to `(=-1˙)⊸⍉`, except that for scalar arguments (including atoms) it returns the array unchanged rather than giving an error. An atom right argument to dyadic Transpose is always enclosed to get a scalar array before doing anything else. -- cgit v1.2.3