wip: optimize +hed:qui and +tal:qui (a little)

This commit is contained in:
Joe Bryan 2024-06-07 22:35:04 -04:00
parent 987e314685
commit 82bd2b3480

View File

@ -756,17 +756,19 @@
++ hed
^- prot
?~ prog ~
=/ slav (pepe n.prog 2)
?~ l.prog [slav ~ ~]
l.prog(n (weld slav n.l.prog))
=+ [n l r]=?@(l.prog [~ ~ ~] l.prog)
:_ [l r]
%+ roll n.prog
|=([p=peon out=_n] [p(axe (peg axe.p 2)) out])
::
:: provenance tree for +3
++ tal
^- prot
?~ prog ~
=/ slav (pepe n.prog 3)
?~ r.prog [slav ~ ~]
r.prog(n (weld slav n.r.prog))
=+ [n l r]=?@(r.prog [~ ~ ~] r.prog)
:_ [l r]
%+ roll n.prog
|=([p=peon out=_n] [p(axe (peg axe.p 3)) out])
::
:: provenance tree from two subtrees (cons)
++ con