mirror of
https://github.com/urbit/ares.git
synced 2024-11-23 00:25:49 +03:00
hoon: add +turn
This commit is contained in:
parent
2833fe1878
commit
c6d5a2656d
@ -247,6 +247,15 @@
|
||||
?: =(0 a) i.b
|
||||
$(b t.b, a (dec a))
|
||||
::
|
||||
++ turn :: transform
|
||||
~/ %turn
|
||||
|* [a=(list) b=gate]
|
||||
=> .(a (homo a))
|
||||
^- (list _?>(?=(^ a) (b i.a)))
|
||||
|-
|
||||
?~ a ~
|
||||
[i=(b i.a) t=$(a t.a)]
|
||||
::
|
||||
++ weld :: concatenate
|
||||
~/ %weld
|
||||
|* [a=(list) b=(list)]
|
||||
|
Loading…
Reference in New Issue
Block a user