mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-22 16:09:13 +03:00
Inline ++to-list.
This commit is contained in:
parent
1d8614f2ee
commit
37f65c099d
@ -1254,9 +1254,14 @@
|
||||
+|
|
||||
::
|
||||
++ to-list
|
||||
:> todo: copy over or something.
|
||||
:> creates a list of pairs from the tree.
|
||||
|* a/(map)
|
||||
~(tap by a)
|
||||
=| b/(list _n.-.a)
|
||||
|-
|
||||
^+ b
|
||||
?~ a
|
||||
b
|
||||
$(a r.a, b [n.a $(a l.a)])
|
||||
::
|
||||
++ from-list
|
||||
:> creates a tree from a list.
|
||||
|
Loading…
Reference in New Issue
Block a user