summaryrefslogtreecommitdiff
path: root/desk/mar/tang.hoon
blob: 9fdd314c0318d5a29e0065e52b566e616cc59837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
::
::::  /hoon/tang/mar
  ::
/?    310
::
=,  format
|_  tan=(list tank)
++  grad  %noun
++  grow
  |%
  ++  noun  tan
  ++  json
    =/  result=(each (list ^json) tang)
      (mule |.((turn tan tank:enjs:format)))
    ?-  -.result
      %&  a+p.result
      %|  a+[a+[%s '[[output rendering error]]']~]~
    ==
  --
++  grab                                                ::  convert from
  |%
  ++  noun  (list ^tank)                                ::  clam from %noun
  ++  tank  |=(a=^tank [a]~)
  --
--