mirror of
https://github.com/urbit/ares.git
synced 2024-11-26 09:57:56 +03:00
hoon: add +rev
This commit is contained in:
parent
4af4ac7296
commit
49935059b7
@ -292,6 +292,16 @@
|
||||
%+ add $(i +(i), b t.b)
|
||||
(lsh [bloq (mul step i)] (end [bloq step] i.b))
|
||||
::
|
||||
++ rev :: reverse block order
|
||||
~/ %rev
|
||||
|= [boz=bloq len=@ud dat=@]
|
||||
~> %sham.%rev
|
||||
^- @
|
||||
=. dat (end [boz len] dat)
|
||||
%+ lsh
|
||||
[boz (sub len (met boz dat))]
|
||||
(swp boz dat)
|
||||
::
|
||||
++ rip :: disassemble
|
||||
~/ %rip
|
||||
|= [a=bite b=@]
|
||||
|
Loading…
Reference in New Issue
Block a user