aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-08-06 16:00:06 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-08-06 16:00:06 -0400
commita2eeb3110d951ae4e4967dd8ba0d85b0be0fb248 (patch)
treec644dc8f625d9140bd188ffcc12cc8fe36b8ce7a
parent466249eb04f54521e1ce10ff20d6d0229a170ac4 (diff)
Avoid using Occurrence Count in LEBv
-rw-r--r--src/c.bqn2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c.bqn b/src/c.bqn
index a4202605..0dda3c25 100644
--- a/src/c.bqn
+++ b/src/c.bqn
@@ -71,7 +71,7 @@ LitVal←(⊑("'"∾'"')⊐⊏)◶⟨1⊸⊑,1⊸↓,ReadNum⟩
LEBv ← {
b←128
l←⌊b⋆⁼1⌈𝕩
- o←⍋⍋⊒/1+l
+ o←⍋⍋((↕¯1⊑⊢)-/⟜(≠↑0∾⊢))⟜(+`)1+l
o⊏l{f←×𝕨⋄(𝕨-1)(b⊸(×⟜f+|)∾𝕊⟜(⌊÷⟜b)○(f⊸/))⍟(∨´f)𝕩}𝕩
}