on master help sign in
Merge pull request #270 from urbit/reag-edit

adding example to illicitly added =, rune doc

commite70ba7a8cdf2d903e6316c3c2b3e534d48677c56 authorJoshua Reagan <joshuareagan@users.noreply.github.com> dateMon 4 Jun 2018, 05:05 (8 years ago) parenta46d89fcf31673
1 file changed+13−2
docs/hoon/rune/tis/com.md+13−2
docs/hoon/rune/tis/com.md+13−2
@@ -9,8 +9,8 @@ title: =, "tiscom"
99
1010`[%tscm p=hoon q=hoon]`: expose namespace
1111
12−`p` evaluates to a noun with some namespace. From within `q` you may access those
13−names without a wing path (e.g., as in for some face `b` rather than `b.p`), or without
12+`p` evaluates to a noun with some namespace. From within `q` you may access `p`'s
13+names without a wing path (i.e., you can use face `b` rather than `b.p`), or without
1414invoking a core name when `p` is a core. This is especially useful for calling arms
1515from an imported library or for calling arms from an stdlib core repeatedly.
1616
@@ -20,6 +20,8 @@ Regular: *2-fixed*.
2020
2121## Examples
2222
23+With a core:
24+
2325```
2426> (sum -7 --7)
2527-find.sum
@@ -31,3 +33,12 @@ Regular: *2-fixed*.
3133> =, si (sum -7 --7)
3234--0
3335```
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+```