shrub/mar/index.hoon

24 lines
544 B
Plaintext
Raw Normal View History

2015-08-12 00:31:16 +03:00
::
2015-12-20 14:48:17 +03:00
:::: /hoon#core#elem#mar
2015-08-12 00:31:16 +03:00
::
/? 314
/+ tree,react
2015-09-02 03:24:18 +03:00
[. tree react]
2015-08-12 00:31:16 +03:00
!:
::::
2015-09-02 03:24:18 +03:00
::
2015-12-20 23:50:45 +03:00
|_ all/(map path marl)
2015-08-12 00:31:16 +03:00
::
2015-12-10 07:05:58 +03:00
++ grow :: convert to
2015-08-12 00:31:16 +03:00
|%
++ json
%. all
%+ map-to-json
2015-12-20 23:50:45 +03:00
|=(a/path (crip (spud a)))
|=(a/marl [%a (turn a react-to-json)])
2015-08-12 00:31:16 +03:00
--
2015-12-10 07:05:58 +03:00
++ grab |% :: convert from
++ noun (map path marl) :: clam from %noun
2015-08-12 00:31:16 +03:00
::++ elem |=(a=manx `_all`[[/ ((getall %h1) a)] ~ ~])
-- --