mirror of
https://github.com/urbit/shrub.git
synced 2024-12-03 05:43:18 +03:00
adds ++key:by and ++val:by
This commit is contained in:
parent
b672601202
commit
9ab8241e78
@ -2823,6 +2823,17 @@
|
||||
+- wyt :: depth of map
|
||||
|- ^- @
|
||||
?~(a 0 +((add $(a l.a) $(a r.a))))
|
||||
::
|
||||
+- key :: set of keys
|
||||
|- ^- (set _?>(?=(^ a) p.n.a))
|
||||
?~ a ~
|
||||
[n=p.n.a l=$(a l.a) r=$(a r.a)]
|
||||
::
|
||||
+- val :: list of vals
|
||||
=| b/(list _?>(?=(^ a) q.n.a))
|
||||
|- ^+ b
|
||||
?~ a b
|
||||
$(a r.a, b [q.n.a $(a l.a)])
|
||||
--
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
:: section 2dC, queues ::
|
||||
|
Loading…
Reference in New Issue
Block a user