urbit/lib/map-to-json.hoon

9 lines
253 B
Plaintext
Raw Normal View History

2016-02-18 02:50:03 +03:00
:: hoon data to json
::
:::: /hoon/map-to-json/lib
::
/? 310
|* {a/_cord b/_json} :: XX {a/$-(* cord) b/$-(* json)}
|= c/(map _+<.a _+<.b)
2016-11-01 03:12:56 +03:00
(jobe:js:eyre (turn (~(tap by c)) |*(d/^ [(a -.d) (b +.d)])))