aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-11-17 15:53:57 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-11-17 15:53:57 -0500
commit1ee3d8ddcb8bb96172cb9874c69f838caf8d0297 (patch)
tree564fbba46732e3fcf227963ed51ca6513865cde7 /src
parentc06d1ac3ccbc0e7687886bb6a0418ca0b8aa8f76 (diff)
Fix handling of empty arguments in ProgressiveIndexOf
Diffstat (limited to 'src')
-rw-r--r--src/r.bqn2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/r.bqn b/src/r.bqn
index 0010fc9f..3ebd50b3 100644
--- a/src/r.bqn
+++ b/src/r.bqn
@@ -545,7 +545,7 @@ ReorderAxesInv←{
⍉ ← Transpose ⊘ ReorderAxes
OccurrenceCount ← ⊐˜(⊢-⊏)⍋∘⍋
-ProgressiveIndexOf ← {𝕨⊐○(≍˘⟜OccurrenceCount𝕨⊸⊐)𝕩}
+ProgressiveIndexOf ← {𝕨⊐○((≠∾2˙)⥊·≍˘⟜OccurrenceCount𝕨⊸⊐)𝕩}
⊏ ← (<0)⊸GetCells ⊘ (ToArray⊸(SelSub _onAxes_ 1))
⊑ ↩ (0⊑⥊) ⊘ Pick