mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 13:06:09 +03:00
hoon: adds +sew, inverse of +cut
This commit is contained in:
parent
2cf1c656bf
commit
12bf28e2c8
@ -928,6 +928,15 @@
|
||||
|= [a=bloq b=step c=@]
|
||||
(div c (bex (mul (bex a) b)))
|
||||
::
|
||||
++ sew :: stitch into
|
||||
~/ %sew
|
||||
|= [a=bloq [b=step c=step d=@] e=@]
|
||||
^- @
|
||||
%+ add
|
||||
(can a b^e c^d ~)
|
||||
=/ f (add b c)
|
||||
(lsh a f (rsh a f e))
|
||||
::
|
||||
++ swp :: naive rev bloq order
|
||||
~/ %swp
|
||||
|= [a=bloq b=@]
|
||||
|
Loading…
Reference in New Issue
Block a user