Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
IotaUnderbar←{ ⍝ ⍸ ⍝ just ⎕IO | ||
⎕IO←0 | ||
IotaUnderbar←{ ⍝ ⍸ ⎕IO←0 for monadic but ⎕IO←1 for dyadic | ||
⎕IO←×⎕NC'⍺' | ||
⍺←⊢ | ||
⍺⍸⍵ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
LeftShoe←{ ⍝ ⊂ ⍝ just ⎕IO | ||
LeftShoe←{ ⍝ ⊂ just ⎕IO | ||
0=⎕NC'⍺':⊂⍵ | ||
⍺⊂[⎕IO]⍵ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
RightShoe←{ ⍝ ⊃ ⍝ just ⎕IO | ||
RightShoe←{ ⍝ ⊃ just ⎕IO | ||
⍺←⊢ | ||
⎕IO←0 | ||
⍺⊃⍵ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
_BackSlash←{ ⍝ \ scan first and outer product | ||
0=⎕NC'⍺':⍺⍺⍀⍵ | ||
_BackSlash←{ ⍝ \ scan first and outer product | ||
0=⎕NC'⍺':⍺⍺⌿_Diaeresis↑∘⍵¨(~⎕IO)+⍳≢⍵ | ||
0∩shape←∊⍴¨⍺ ⍵::shape⍴⎕NS ⍬ | ||
⍺∘.⍺⍺ ⍵ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
_Diaeresis←{ ⍝ ¨ ignoring empty arrays | ||
_Diaeresis←{ ⍝ ¨ handling empty arrays with failing prototype | ||
⍺←⊢ | ||
(0∘∊∘∊∧0∊≢¨)⍴¨⍺ ⍵ ⍵:⍵ | ||
r←⍺⊢¨⍵ | ||
0⍴⍨0∊⍴r::(⍴r)⍴⎕NS ⍬ | ||
⍺ ⍺⍺¨⍵ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
_JotDiaeresis_←{ ⍝ ⍤ but handling empties | ||
rank←⌽3⍴⌽⍵⍵ | ||
0=⎕NC'⍺':↑⍺⍺ _Diaeresis⊂⍤(⊃rank)⊢⍵ | ||
a←⊂⍤(⊃1⌽rank)⊢⍺ | ||
w←⊂⍤(⊃2⌽rank)⊢⍵ | ||
↑⍺ ⍺⍺ _Diaeresis ⍵ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters