on master help sign in
added example to =, rune doc
commitcf31673024af0a8f9031a6b933b7e1cc8b43c2e5 authorJoshua Reagan <joshuareagan@users.noreply.github.com> dateWed 23 May 2018, 15:04 (8 years ago) parent4112789
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+```