From 920a06ebc26ae925ecd2b975c07a56db63109b43 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Thu, 6 Aug 2020 15:43:04 -0400 Subject: Faster structural Under: only grade the inserted indices --- impl.bqn | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/impl.bqn b/impl.bqn index fafbad43..90d5f6fb 100644 --- a/impl.bqn +++ b/impl.bqn @@ -106,6 +106,16 @@ Indices←{ }⍟(0) ⊘ ×) _perv @@ -441,10 +451,3 @@ _repeat_←{ (|⊑<⟜0⊑pos‿neg˜)⚇0 n } ⍟ ↩ _repeat_ - -_under_←{ - i←↕×´s←≢𝕩 - v←⥊𝕨𝔽○𝔾𝕩⋄gi←⥊𝔾s⥊i⋄k←¬i∊gi - s⥊(⍋(/k)∾gi)⊏(k/⥊𝕩)∾v -} -⌾ ← _under_ -- cgit v1.2.3