aboutsummaryrefslogtreecommitdiff
path: root/impl.bqn
diff options
context:
space:
mode:
Diffstat (limited to 'impl.bqn')
-rw-r--r--impl.bqn6
1 files changed, 3 insertions, 3 deletions
diff --git a/impl.bqn b/impl.bqn
index f03d5c39..026c03f3 100644
--- a/impl.bqn
+++ b/impl.bqn
@@ -1,6 +1,6 @@
β—Ά ← {𝕨((𝕨𝔽𝕩)βŠ‘π•˜){𝔽}𝕩} # LIMITED to number left operand result
⊘ ← {𝕨((1{𝔽}𝕨)-0)◢𝔽‿𝔾 𝕩}
-#⊒ ← {𝕩} # Prevents dyadic negative ⍟
+⊒ ← {𝕩}
⊣ ← {𝕩}⊘{𝕨}
˜ ← {π•©π”½π•¨βŠ£π•©}
∘ ← {𝔽𝕨𝔾𝕩}
@@ -394,11 +394,11 @@ ProgressiveIndexOf ← {π•¨βŠβ—‹(β‰Λ˜βŸœOccurrenceCountπ•¨βŠΈβŠ)𝕩}
_repeat_←{
n←𝕨𝔾𝕩
- f←0βŠ‘π•¨βŸ¨π”½βŸ©βŠ˜βŸ¨π•¨π”½βŠ’βŸ©π•©
l←u←0
{!Int𝕩⋄l↩lβŒŠπ•©β‹„u↩uβŒˆπ•©}βš‡0 n
a←𝕩⋄_p←{π”½βˆ˜βŠ£`(1+𝕩)β₯Š<a}
- pos←F _p u β‹„ neg←F⁼_p-l
+ pos←(𝕨𝔽 ⊒)_p u
+ neg←(π•¨π”½βΌβŠ’)_p-l
(|βŠ‘<⟜0βŠ‘posβ€Ώneg˜)βš‡0 n
}
⍟ ↩ _repeat_