hoon: adds atom map gates +run and +rut

This commit is contained in:
Joe Bryan 2020-11-30 14:32:40 -08:00
parent 12bf28e2c8
commit 3f71826d6b

View File

@ -928,6 +928,16 @@
|= [a=bloq b=step c=@] |= [a=bloq b=step c=@]
(div c (bex (mul (bex a) b))) (div c (bex (mul (bex a) b)))
:: ::
++ run :: +turn into atom
~/ %run
|= [a=bite b=@ c=$-(@ @)]
(rep a (turn (rip a b) c))
::
++ rut :: +turn into list
~/ %rut
|* [a=bite b=@ c=$-(@ *)]
(turn (rip a b) c)
::
++ sew :: stitch into ++ sew :: stitch into
~/ %sew ~/ %sew
|= [a=bloq [b=step c=step d=@] e=@] |= [a=bloq [b=step c=step d=@] e=@]