aboutsummaryrefslogtreecommitdiff
path: root/impl.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-29 18:08:24 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-29 18:08:24 -0400
commit1461cb3b0dcf4991295ecffa7317ae0c4a7a909c (patch)
tree7e04a6b27849fd5e56fbd259227157768d320ba2 /impl.bqn
parent48d8cc1401e46b8c33330f0f61fd36b40c20b789 (diff)
Don't include undefined built-in guards in preprocessing
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 11b9f3c9..f03d5c39 100644
--- a/impl.bqn
+++ b/impl.bqn
@@ -383,13 +383,13 @@ _bins←{
(≠𝕨) {B⟜𝕩 _binSearch 𝕨}¨ (×´sx) × ⥊⟜(↕×´)⊑⟜(≢𝕩)¨↕cx
}
-OccurrenceCount ← ⊐˜(⊢-⊏)⍋∘⍋
-ProgressiveIndexOf ← {𝕨⊐○(≍˘⟜OccurrenceCount𝕨⊸⊐)𝕩}
-
⍋ ← Cmp _grade ⊘ ( Cmp _bins)
⍒ ← -∘Cmp _grade ⊘ (-∘Cmp _bins)
∧ ↩ ⍋⊸⊏ ⊘ ∧
∨ ↩ ⍒⊸⊏ ⊘ ∨
+
+OccurrenceCount ← ⊐˜(⊢-⊏)⍋∘⍋
+ProgressiveIndexOf ← {𝕨⊐○(≍˘⟜OccurrenceCount𝕨⊸⊐)𝕩}
⊒ ← OccurrenceCount⊘ ProgressiveIndexOf
_repeat_←{