aboutsummaryrefslogtreecommitdiff
path: root/dzref
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-26 19:25:30 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-26 19:25:38 -0400
commit9d01a2f11efc7f3c3636a1fee61d3ba8307ffc50 (patch)
treecfdd850085404b7ea4fa5da7e80ac0c3b5f3fc8a /dzref
parent3b4b98cb2daba4d8c811b6294b666c888ef8f3d2 (diff)
Rank function and Insert supported in dzaima/BQN
Diffstat (limited to 'dzref')
-rwxr-xr-xdzref10
1 files changed, 2 insertions, 8 deletions
diff --git a/dzref b/dzref
index c4c56596..5edc7035 100755
--- a/dzref
+++ b/dzref
@@ -24,12 +24,7 @@ _depthOp_←{
}
𝕨 n _d 𝕩
}
-_insert←{
- ! 1≀=𝕩
- 𝕨 𝔽´ <Λ˜π•©
-}
βš‡ ← _depthOp_
-˝ ← _insert
#⌜
@@ -152,8 +147,8 @@ ProgressiveIndexOf ← {π•¨βŠβ—‹(β‰Λ˜βŸœOccurrenceCountπ•¨βŠΈβŠ)𝕩}
X←Raw←{≀4}
{
chrsβ†βŸ¨
- "!=βˆΎβ†•βŒ½β‰β‹β’βŠβŠ’βˆŠβ·"
- "˝"
+ "!βˆΎβ†•βŒ½β‰β‹β’βŠβŠ’βˆŠβ·"
+ ""
"βš‡"
⟩
nc ← β‰ Β¨chrs
@@ -181,7 +176,6 @@ X←Raw←{≀4}
⍎"Type ← ⟨⟩β₯Š0⊸β₯Š"
'!' Mod "{𝕩 β‹„ ≀1}⍟¬"
- '=' Mod "β‰ βˆ˜β‰’ ⊘ ="
Mod⟜β₯ŠΒ¨ "β†•βˆΎβŒ½βŠβ‹β’"