index
:
BQN.git
master
gitar
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
impl.bqn
7
1 files changed, 7 insertions, 0 deletions
diff --git a/impl.bqn b/impl.bqn
index 558ef06b..2285f66e 100644
--- a/
impl.bqn
+++ b/
impl.bqn
@@ -416,3 +416,10 @@ _repeat_←{
(|⊑<⟜0⊑pos‿neg˜)⚇0 n
}
⍟ ↩ _repeat_
+
+_under_←{
+ i←↕×´s←≢𝕩
+ v←⥊𝕨𝔽○𝔾𝕩⋄gi←⥊𝔾s⥊i⋄k←¬i∊gi
+ s⥊(⍋(/k)∾gi)⊏(k/⥊𝕩)∾v
+}
+⌾ ← _under_