on 492ae2f help sign in
45 lines 732 B history raw
1### `++smyt`
3Render path as tank
5Renders the path `bon` as a `tank`, which is used for
6pretty-printing.
8Accepts
9-------
11Produces
12--------
14`bon` is a `++path`.
16Source
17------
19 ++ smyt :: pretty print path
20 |= bon/path ^- tank
21 :+ %rose [['/' ~] ['/' ~] ~]
22 (turn bon |=(a/@ [%leaf (trip a)]))
23 ::
25Examples
26--------
28 ~zod/try=> (smyt %)
29 [ %rose
30 p=[p="/" q="/" r="/"]
31 q
32 ~[ [%leaf p="~zod"]
33 [%leaf p="try"]
34 [%leaf p="~2014.10.28..18.36.58..a280"]
35 ]
36 ]
37 ~zod/try=> (smyt /as/les/top)
38 [ %rose
39 p=[p="/" q="/" r="/"]
40 q=~[[%leaf p="as"] [%leaf p="les"] [%leaf p="top"]]
41 ]
45***