hoon: add +scag

This commit is contained in:
Alex Shelkovnykov 2023-09-05 22:21:45 -06:00
parent f185d34313
commit 7b3bb4e05a

View File

@ -237,6 +237,13 @@
+<+.b
$(a t.a, b b(+<+ (b i.a +<+.b)))
::
++ scag :: prefix
~/ %scag
|* [a=@ b=(list)]
|- ^+ b
?: |(?=(~ b) =(0 a)) ~
[i.b $(b t.b, a (dec a))]
::
++ slag :: suffix
~/ %slag
|* [a=@ b=(list)]