From 1ee3d8ddcb8bb96172cb9874c69f838caf8d0297 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 17 Nov 2020 15:53:57 -0500 Subject: Fix handling of empty arguments in ProgressiveIndexOf --- src/r.bqn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3