mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
a539d986a7
In favor of [type] syntax. Turns a bunch of ++ into +$ along the way.
19 lines
312 B
Plaintext
19 lines
312 B
Plaintext
/- *group-store
|
|
|%
|
|
++ groups-to-json
|
|
|= grp=groups
|
|
^- json
|
|
=, enjs:format
|
|
%- pairs
|
|
%+ turn ~(tap by grp)
|
|
|= [pax=^path =group]
|
|
^- [@t json]
|
|
:- (spat pax)
|
|
(set-to-array group ship:enjs:format)
|
|
::
|
|
++ set-to-array
|
|
|* [a=(set) b=$-(* json)]
|
|
^- json
|
|
[%a (turn ~(tap in a) b)]
|
|
--
|