From abe8ae4745bb2ebe3b71b047aa92e2ae89a414d5 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 6 Jan 2021 21:55:23 -0500 Subject: Avoid joining units in some documentation --- docs/doc/block.html | 4 ++-- docs/doc/functional.html | 2 +- docs/doc/group.html | 8 ++++---- docs/doc/join.html | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/doc/block.html b/docs/doc/block.html index 1fcd1dd6..e5652775 100644 --- a/docs/doc/block.html +++ b/docs/doc/block.html @@ -68,9 +68,9 @@

Of these, 𝕣 is sort of a "more special" character, as we'll discuss below. Except for 𝕣, every special name is a single character and can't have underscores added to spell it as a modifier, allowing a modifier to be applied to a special name with no spacing as in 𝕗_m, something that can't be done with ordinary names.

Arguments

The names 𝕨 and 𝕩, and their uppercase spellings, represent function arguments. As the argument to a function is typically data, it's more common to use the lowercase forms for these. Either of these names will turn an immediate block into a function (or an immediate modifier into a deferred one; see the next section). Instead of being evaluated as soon as it appears in the source, a function is evaluated when it's called, with the special names set to appropriate values. Unlike in Dyalog APL's dfns, their values can be changed like ordinary variables.

-↗️
    {'c'=𝕩} "abcd"
+↗️
    {'c'=𝕩} "abcd"
 ⟨ 0 0 1 0 ⟩
-    { 𝕩+↩2 β‹„ 0βˆΎπ•© } 3
+    { 𝕩+↩2 β‹„ 0≍𝕩 } 3
 ⟨ 0 5 ⟩
     4 { βŸ¨π•©β‹„-π•¨βŸ© } 5
 ⟨ 5 ¯4 ⟩
diff --git a/docs/doc/functional.html b/docs/doc/functional.html
index fbba17dd..6cf2a402 100644
--- a/docs/doc/functional.html
+++ b/docs/doc/functional.html
@@ -116,7 +116,7 @@
 0.01831563888873418
 

Another, and probably more common, use of arrays of functions is to apply several different functions to one or more arguments. Here we apply three different functions to the number 9:

-↗️
    ⟨√, 2⊸∾, ⊒-β‹†βŸ© {π•Žπ•©}Β¨ 9
+↗️
    ⟨√, 2βŠΈβ‰, ⊒-β‹†βŸ© {π•Žπ•©}Β¨ 9
 ⟨ 3 ⟨ 2 9 ⟩ ¯8094.083927575384 ⟩
 

The 2-modifier Choose (β—Ά) relies on arrays of functions to… function. It's very closely related to Pick βŠ‘, and in fact when the left operand and the elements of the right operand are all data there's no real difference: Choose returns the constant function π•—βŠ‘π•˜.

diff --git a/docs/doc/group.html b/docs/doc/group.html index 2240a89c..491fca81 100644 --- a/docs/doc/group.html +++ b/docs/doc/group.html @@ -101,8 +101,8 @@ β”˜

If we would like a particular index to key correspondence, we can use a fixed left argument to Index Of.

-↗️
    countries ← "IT"β€Ώ"JP"β€Ώ"NO"β€Ώ"SU"β€Ώ"US"
-    countries ∾˘ co countriesβŠΈβŠβŠΈβŠ” ln
+↗️
    countries ← "IT"β€Ώ"JP"β€Ώ"NO"β€Ώ"SU"β€Ώ"US"
+    countries β‰Λ˜ co countriesβŠΈβŠβŠΈβŠ” ln
 β”Œβ”€                                 
 β•΅ "IT" ⟨⟩                          
   "JP" ⟨⟩                          
@@ -112,8 +112,8 @@
                                   β”˜
 

However, this solution will fail if there are trailing keys with no values. To force the result to have a particular length you can append that length as a dummy index to each argument, then remove the last group after grouping.

-↗️
    countries ↩ "IT"β€Ώ"JP"β€Ώ"NO"β€Ώ"SU"β€Ώ"US"β€Ώ"ZW"
-    countries ∾˘ co countries{π•—βŠΈβŠβŠΈ(Β―1β†“βŠ”β—‹(∾⟜(≠𝕗)))} ln
+↗️
    countries ↩ "IT"β€Ώ"JP"β€Ώ"NO"β€Ώ"SU"β€Ώ"US"β€Ώ"ZW"
+    countries β‰Λ˜ co countries{π•—βŠΈβŠβŠΈ(Β―1β†“βŠ”β—‹(∾⟜(≠𝕗)))} ln
 β”Œβ”€                                 
 β•΅ "IT" ⟨⟩                          
   "JP" ⟨⟩                          
diff --git a/docs/doc/join.html b/docs/doc/join.html
index 62f478ee..d9cac584 100644
--- a/docs/doc/join.html
+++ b/docs/doc/join.html
@@ -67,7 +67,7 @@ ERROR
 ERROR
 

However, Join has higher-dimensional uses as well. Given a rank-m array of rank-n arrays (requiring m≀n), it will merge arrays along their first m axes. For example, if the argument is a matrix of matrices representing a block matrix, Join will give the corresponding unblocked matrix as its result.

-↗️
    ⊒ m ← (3β€Ώ1∾⌜4β€Ώ2β€Ώ5) β₯ŠΒ¨ 2β€Ώ3β₯Šβ†•6
+↗️
    ⊒ m ← (3β€Ώ1β‰βŒœ4β€Ώ2β€Ώ5) β₯ŠΒ¨ 2β€Ώ3β₯Šβ†•6
 β”Œβ”€                                   
 β•΅ β”Œβ”€          β”Œβ”€      β”Œβ”€             
   β•΅ 0 0 0 0   β•΅ 1 1   β•΅ 2 2 2 2 2    
-- 
cgit v1.2.3