From 75a3e579c6c4c198c2b7c94abbc64b9b20d231f8 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 3 May 2021 18:04:13 -0400 Subject: =?UTF-8?q?Rearrange=20homogeneous=20fill=20code=20and=20don't=20f?= =?UTF-8?q?ill=20monadic=20=E2=89=A2=C2=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/r1.bqn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/r1.bqn b/src/r1.bqn index 7b1c5d45..15043042 100644 --- a/src/r1.bqn +++ b/src/r1.bqn @@ -316,7 +316,8 @@ Replicate←⟨"/" ⟩_multiAxis○ToArray _fillBy_ ⊢ IsPure ← {d←Decompose𝕩 ⋄ 2⊸≤◶⟨≤⟜0, 1×´·𝕊⌜1↓d˙⟩0⊑d} -HomFil ← ("=≠≡≢"_glyphLookup_(1‿1‿2‿2‿0)∘⊣)◶⊢‿{((𝕎0) Fill 𝕏)⊘𝕏}‿{(𝕎0)⊘0 Fill 𝕏} +hfils ← {𝕏´{0 Fill 𝕏}‿⊢}⌜(⊢∾{𝕏˜}⌜)⊢‿{𝕎{𝕎⊘𝕏}𝕏} +HomFil ← "=≠≡≢"_glyphLookup_(1‿1‿2‿3‿0⊏hfils)⊸{𝕎𝕩} _fillByPure_←{ 𝕘 (3≤Type∘⊣)◶⟨{𝕨Fill𝕏},{(𝕨HomFil𝕩)_fillBy_𝕨}⍟(IsPure⊣)⟩ 𝕗 } -- cgit v1.2.3