Merge pull request #6117 from urbit/lf/lure

hoon: add +lure, for turning a singleton into a list
This commit is contained in:
Philip Monk 2023-01-17 15:22:58 -07:00 committed by GitHub
commit d9e5ebe806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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