hoon: add +lure, for turning a singleton into a list

This commit is contained in:
Liam Fitzgerald 2022-12-01 15:47:04 +10:00
parent c23fec3e70
commit 02944af669

View File

@ -531,6 +531,11 @@
|* [a=(list) b=*]
(weld a ^+(a [b]~))
::
:: +lure: List pURE
++ lure
|* a=*
[i=a t=~]
::
++ fand :: all indices
~/ %fand
|= [nedl=(list) hstk=(list)]