mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 13:06:09 +03:00
hoon: adds atom map gates +run and +rut
This commit is contained in:
parent
12bf28e2c8
commit
3f71826d6b
@ -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=@]
|
||||||
|
Loading…
Reference in New Issue
Block a user