hoon: adds +sew, inverse of +cut

This commit is contained in:
Joe Bryan 2020-11-30 17:11:06 -08:00
parent 2cf1c656bf
commit 12bf28e2c8

View File

@ -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=@]