From c6cab48977311e88bf26c0d5b25ee09b95817ab4 Mon Sep 17 00:00:00 2001 From: razetime Date: Thu, 20 Jan 2022 08:47:02 +0530 Subject: fix repl redef errors --- docs/help/classify_indexof.html | 7 +++--- docs/help/deduplicate_find.html | 21 +++++++++-------- docs/help/first_pick.html | 7 +++--- docs/help/firstcell_select.html | 7 +++--- docs/help/insert.html | 7 +++--- docs/help/markfirst_memberof.html | 9 ++++---- docs/help/prefixes_take.html | 45 ++++++++++++++++++------------------ docs/help/reverse_rotate.html | 7 +++--- docs/help/suffixes_drop.html | 21 +++++++++-------- docs/help/transpose_reorderaxes.html | 4 ++-- help/classify_indexof.md | 4 ++-- help/deduplicate_find.md | 6 ++--- help/first_pick.md | 4 ++-- help/firstcell_select.md | 4 ++-- help/insert.md | 6 ++--- help/markfirst_memberof.md | 6 ++--- help/prefixes_take.md | 8 +++---- help/reverse_rotate.md | 4 ++-- help/suffixes_drop.md | 8 +++---- help/transpose_reorderaxes.md | 4 ++-- 20 files changed, 93 insertions(+), 96 deletions(-) diff --git a/docs/help/classify_indexof.html b/docs/help/classify_indexof.html index 439380a8..558b42b2 100644 --- a/docs/help/classify_indexof.html +++ b/docs/help/classify_indexof.html @@ -18,13 +18,12 @@

𝕨 𝕩: Index Of

First index of each major cell of 𝕩 in 𝕨. Rank of 𝕩 must be at least cell rank of 𝕨`.

If a cell is not found in 𝕨, that position will contain the length of 𝕨 (𝕨).

-↗️
       562251  5216
+↗️
       562251  5216
 ⟨ 0 2 5 1 ⟩
 
-       a  33  012909012
-Error: Redefinition
+       b  33  012909012
 
-       a  909
+       b  909
 ┌·   
 · 3  
     ┘
diff --git a/docs/help/deduplicate_find.html b/docs/help/deduplicate_find.html
index 8a57c765..411812e8 100644
--- a/docs/help/deduplicate_find.html
+++ b/docs/help/deduplicate_find.html
@@ -21,20 +21,23 @@
 

𝕨 𝕩: Find

Mark the top left location of the occurrences of 𝕨 in 𝕩 with a 1, and other locations with 0.

Result is the same shape as (𝕨)x.

-↗️
       "string"  "substring"
+↗️
       "string"  "substring"
 ⟨ 0 0 0 1 ⟩
 
        "loooooong"  "short"
 ⟨⟩
 
-       a  7 (4|⋆˜) 9
-Error: Redefinition
+       b  7 (4|⋆˜) 9
 
-       b  (030010)
+       c  (030010)
 
-       b  a
-┌─   
-╵ 0  
-  0  
-    ┘
+       c  b
+┌─               
+╵ 0 0 0 0 0 0 0  
+  0 0 0 0 0 0 0  
+  0 0 0 0 0 0 0  
+  0 0 1 0 0 0 1  
+  0 0 0 0 0 0 0  
+  0 0 1 0 0 0 1  
+                ┘
 
diff --git a/docs/help/first_pick.html b/docs/help/first_pick.html index 6c829cbf..e9a5a7f7 100644 --- a/docs/help/first_pick.html +++ b/docs/help/first_pick.html @@ -17,12 +17,11 @@

𝕨 𝕩: Pick

Pick the element of 𝕨 at index 𝕩.

-↗️
       2  1, 2, 3
+↗️
       2  1, 2, 3
 3
 
-       a  33  9
-Error: Redefinition
+       b  33  9
 
-       20  a
+       20  b
 6
 
diff --git a/docs/help/firstcell_select.html b/docs/help/firstcell_select.html index 63369774..54cfd324 100644 --- a/docs/help/firstcell_select.html +++ b/docs/help/firstcell_select.html @@ -19,13 +19,12 @@

𝕨 𝕩: Select

Select the major cells of 𝕨 at the indices in 𝕩.

-↗️
       20  1, 2, 3
+↗️
       20  1, 2, 3
 ⟨ 3 1 ⟩
 
-       a  33  9
-Error: Redefinition
+       b  33  9
 
-       20  a
+       20  b
 ┌─       
 ╵ 6 7 8  
   0 1 2  
diff --git a/docs/help/insert.html b/docs/help/insert.html
index a00eca0e..f1d8a7dd 100644
--- a/docs/help/insert.html
+++ b/docs/help/insert.html
@@ -18,13 +18,12 @@
 

𝕨 𝔽˝ 𝕩: Insert With initial

Monadic insert, but use 𝕨 as initial right argument.

If

-↗️
       a  33  9
-Error: Redefinition
+↗️
       b  33  9
 
-       111 +˝ a
+       111 +˝ b
 ⟨ 10 13 16 ⟩
 
-       1 +˝ a
+       1 +˝ b
 ⟨ 10 13 16 ⟩
 
        012 + 345 + 678 + 111
diff --git a/docs/help/markfirst_memberof.html b/docs/help/markfirst_memberof.html
index 82ccf437..2b304dc2 100644
--- a/docs/help/markfirst_memberof.html
+++ b/docs/help/markfirst_memberof.html
@@ -17,18 +17,17 @@
 

𝕨 𝕩: Member Of

Is each element in 𝕨 a major cell of 𝕩?

-↗️
       1  9
+↗️
       1  9
 ⟨ 1 ⟩
 
-       a  33  9
-Error: Redefinition
+       b  33  9
 
-       012  a
+       012  b
 ┌·   
 · 0  
     ┘
 
-       13  012  a
+       13  012  b
 ┌·   
 · 0  
     ┘
diff --git a/docs/help/prefixes_take.html b/docs/help/prefixes_take.html
index 61d27740..41b13ed7 100644
--- a/docs/help/prefixes_take.html
+++ b/docs/help/prefixes_take.html
@@ -25,32 +25,31 @@
 

For each integer in 𝕨, take that many elements from each dimension of 𝕩.

Negative numbers take from the end.

If any of the elements in 𝕨 are greater than the length of their respective dimension, the dimension is extended with a fill value.

-↗️
      3  13567
+↗️
      3  13567
 ⟨ 1 3 5 ⟩
 
-      a  44  16
-Error: Redefinition
+      b  44  16
 
-      33  a
-┌─       
-╵ 0 1 2  
-  3 4 5  
-  6 7 8  
-        ┘
+      33  b
+┌─        
+╵ 0 1  2  
+  4 5  6  
+  8 9 10  
+         ┘
 
-      55  a
-┌─           
-╵ 0 1 2 0 0  
-  3 4 5 0 0  
-  6 7 8 0 0  
-  0 0 0 0 0  
-  0 0 0 0 0  
-            ┘
+      55  b
+┌─               
+╵  0  1  2  3 0  
+   4  5  6  7 0  
+   8  9 10 11 0  
+  12 13 14 15 0  
+   0  0  0  0 0  
+                ┘
 
-      3¯3  a
-┌─       
-╵ 0 1 2  
-  3 4 5  
-  6 7 8  
-        ┘
+      3¯3  b
+┌─         
+╵ 1  2  3  
+  5  6  7  
+  9 10 11  
+          ┘
 
diff --git a/docs/help/reverse_rotate.html b/docs/help/reverse_rotate.html index 10b7cbb0..1060311c 100644 --- a/docs/help/reverse_rotate.html +++ b/docs/help/reverse_rotate.html @@ -21,13 +21,12 @@

𝕨 𝕩: Dyad

Move the first 𝕨 elements of 𝕩 to its end. Negative 𝕨 reverses the direction of rotation.

-↗️
       2  123
+↗️
       2  123
 ⟨ 3 1 2 ⟩
 
-       a  33  9
-Error: Redefinition
+       b  33  9
 
-       2  a
+       2  b
 ┌─       
 ╵ 6 7 8  
   0 1 2  
diff --git a/docs/help/suffixes_drop.html b/docs/help/suffixes_drop.html
index c581087c..1746611b 100644
--- a/docs/help/suffixes_drop.html
+++ b/docs/help/suffixes_drop.html
@@ -24,22 +24,23 @@
 

𝕨 𝕩: Drop

For each integer in 𝕨, drop that many elements from the beginning of each dimension of 𝕩.

Negative numbers drop from the end.

-↗️
       3  13567
+↗️
       3  13567
 ⟨ 67 ⟩
 
-       a  44  16
-Error: Redefinition
+       b  44  16
 
-       33  a
-┌┐
-└┘
+       33  b
+┌─    
+╵ 15  
+     ┘
 
-       55  a
+       55  b
 ┌┐
 └┘
 
 
-       3¯3  a
-┌┐
-└┘
+       3¯3  b
+┌─    
+╵ 12  
+     ┘
 
diff --git a/docs/help/transpose_reorderaxes.html b/docs/help/transpose_reorderaxes.html index 17719fdf..ce790409 100644 --- a/docs/help/transpose_reorderaxes.html +++ b/docs/help/transpose_reorderaxes.html @@ -23,9 +23,9 @@

𝕨 𝕩: Reorder Axes

Rearrange the axes of 𝕩 as per the axis indices in 𝕨.

-↗️
        a  23456 1
+↗️
        b  23456 1
 Error: Redefinition
 
-        13204  a
+        13204  b
 Error: 𝕨⍉𝕩: Length of 𝕨 must not exceed rank of 𝕩
 
diff --git a/help/classify_indexof.md b/help/classify_indexof.md index 0aa3b0d6..8cef889f 100644 --- a/help/classify_indexof.md +++ b/help/classify_indexof.md @@ -22,9 +22,9 @@ If a cell is not found in `𝕨`, that position will contain the length of `𝕨 5‿6‿2‿2‿5‿1 ⊐ 5‿2‿1‿6 - a ← 3‿3 ⥊ 0‿1‿2‿9‿0‿9‿0‿1‿2 + b ← 3‿3 ⥊ 0‿1‿2‿9‿0‿9‿0‿1‿2 - a ⊐ ⟨9‿0‿9⟩ + b ⊐ ⟨9‿0‿9⟩ diff --git a/help/deduplicate_find.md b/help/deduplicate_find.md index 631638c4..168927c6 100644 --- a/help/deduplicate_find.md +++ b/help/deduplicate_find.md @@ -24,10 +24,10 @@ Result is the same shape as `(≢𝕨)↕x`. "loooooong" ⍷ "short" - a ← 7 (4|⋆˜)⌜○↕ 9 + b ← 7 (4|⋆˜)⌜○↕ 9 - b ← (0‿3‿0≍0‿1‿0) + c ← (0‿3‿0≍0‿1‿0) - b ⍷ a + c ⍷ b diff --git a/help/first_pick.md b/help/first_pick.md index c415b8f9..c85be515 100644 --- a/help/first_pick.md +++ b/help/first_pick.md @@ -20,8 +20,8 @@ Pick the element of `𝕨` at index `𝕩`. 2 ⊑ ⟨1, 2, 3⟩ - a ← 3‿3 ⥊ ↕9 + b ← 3‿3 ⥊ ↕9 - 2‿0 ⊑ a + 2‿0 ⊑ b diff --git a/help/firstcell_select.md b/help/firstcell_select.md index 94c82357..06cd6010 100644 --- a/help/firstcell_select.md +++ b/help/firstcell_select.md @@ -20,8 +20,8 @@ Select the major cells of `𝕨` at the indices in `𝕩`. 2‿0 ⊏ ⟨1, 2, 3⟩ - a ← 3‿3 ⥊ ↕9 + b ← 3‿3 ⥊ ↕9 - 2‿0 ⊏ a + 2‿0 ⊏ b diff --git a/help/insert.md b/help/insert.md index 0acfb575..b038b34f 100644 --- a/help/insert.md +++ b/help/insert.md @@ -19,11 +19,11 @@ Monadic insert, but use `𝕨` as initial right argument. If - a ← 3‿3 ⥊ ↕9 + b ← 3‿3 ⥊ ↕9 - 1‿1‿1 +˝ a + 1‿1‿1 +˝ b - 1 +˝ a + 1 +˝ b 0‿1‿2 + 3‿4‿5 + 6‿7‿8 + 1‿1‿1 diff --git a/help/markfirst_memberof.md b/help/markfirst_memberof.md index 228d6a50..e5f38079 100644 --- a/help/markfirst_memberof.md +++ b/help/markfirst_memberof.md @@ -20,10 +20,10 @@ Is each element in `𝕨` a major cell of `𝕩`? ⟨1⟩ ∊ ↕9 - a ← 3‿3 ⥊ ↕9 + b ← 3‿3 ⥊ ↕9 - ⟨0‿1‿2⟩ ∊ a + ⟨0‿1‿2⟩ ∊ b - ⟨1‿3 ⥊ 0‿1‿2⟩ ∊ a + ⟨1‿3 ⥊ 0‿1‿2⟩ ∊ b diff --git a/help/prefixes_take.md b/help/prefixes_take.md index 636574fa..6b87d124 100644 --- a/help/prefixes_take.md +++ b/help/prefixes_take.md @@ -24,12 +24,12 @@ If any of the elements in `𝕨` are greater than the length of their respective 3 ↑ 1‿3‿5‿67 - a ← 4‿4 ⥊ ↕16 + b ← 4‿4 ⥊ ↕16 - 3‿3 ↑ a + 3‿3 ↑ b - 5‿5 ↑ a + 5‿5 ↑ b - 3‿¯3 ↑ a + 3‿¯3 ↑ b diff --git a/help/reverse_rotate.md b/help/reverse_rotate.md index a7ec430b..0eedfc62 100644 --- a/help/reverse_rotate.md +++ b/help/reverse_rotate.md @@ -20,8 +20,8 @@ Move the first `𝕨` elements of `𝕩` to its end. Negative `𝕨` reverses th 2 ⌽ 1‿2‿3 - a ← 3‿3 ⥊ ↕9 + b ← 3‿3 ⥊ ↕9 - 2 ⌽ a + 2 ⌽ b diff --git a/help/suffixes_drop.md b/help/suffixes_drop.md index 10c93520..a513f8db 100644 --- a/help/suffixes_drop.md +++ b/help/suffixes_drop.md @@ -22,13 +22,13 @@ Negative numbers drop from the end. 3 ↓ 1‿3‿5‿67 - a ← 4‿4 ⥊ ↕16 + b ← 4‿4 ⥊ ↕16 - 3‿3 ↓ a + 3‿3 ↓ b - 5‿5 ↓ a + 5‿5 ↓ b - 3‿¯3 ↓ a + 3‿¯3 ↓ b diff --git a/help/transpose_reorderaxes.md b/help/transpose_reorderaxes.md index 72060ce2..d26664a5 100644 --- a/help/transpose_reorderaxes.md +++ b/help/transpose_reorderaxes.md @@ -20,8 +20,8 @@ Move the first axis of `𝕩` to the end. Rearrange the axes of `𝕩` as per the axis indices in `𝕨`. - ≢ a ← 2‿3‿4‿5‿6 ⥊1 + ≢ b ← 2‿3‿4‿5‿6 ⥊1 - ≢ 1‿3‿2‿0‿4 ⍉ a + ≢ 1‿3‿2‿0‿4 ⍉ b -- cgit v1.2.3