on master help sign in
added example to =, rune doc
cf31673Joshua Reagan
docs/hoon/rune/tis/com.md+13−2
@@ -9,8 +9,8 @@ title: =, "tiscom"
9
9
10`[%tscm p=hoon q=hoon]`: expose namespace
10`[%tscm p=hoon q=hoon]`: expose namespace
11
11
12−`p` evaluates to a noun with some namespace. From within `q` you may access those
12+`p` evaluates to a noun with some namespace. From within `q` you may access `p`'s
13−names without a wing path (e.g., as in for some face `b` rather than `b.p`), or without
13+names without a wing path (i.e., you can use face `b` rather than `b.p`), or without
14invoking a core name when `p` is a core. This is especially useful for calling arms
14invoking a core name when `p` is a core. This is especially useful for calling arms
15from an imported library or for calling arms from an stdlib core repeatedly.
15from an imported library or for calling arms from an stdlib core repeatedly.
16
16
@@ -20,6 +20,8 @@ Regular: *2-fixed*.
20
20
21## Examples
21## Examples
22
22
23+With a core:
24+
23```
25```
24> (sum -7 --7)
26> (sum -7 --7)
25-find.sum
27-find.sum
@@ -31,3 +33,12 @@ Regular: *2-fixed*.
31> =, si (sum -7 --7)
33> =, si (sum -7 --7)
32--0
34--0
33```
35```
36+
37+With a dojo-defined face:
38+
39+```
40+> =/ fan [bab=2 baz=[3 qux=4]]
41+ =, fan
42+ [bab qux.baz]
43+[2 4]
44+```