on master help sign in
Merge pull request #189 from urbit/fix-cen-tar
8a971efKeaton Dunsford
docs/hoon/twig/cen-call/tar-bake.md+10
@@ -26,6 +26,12 @@ r
26
26
27Regular: *2-fixed*, then *jogging*.
27Regular: *2-fixed*, then *jogging*.
28
28
29+## Discussion
30+
31+`%*` makes a limb from a twig, with changes. It's useful when you want
32+evaluate a twig, pull out a single limb from the result,
33+and then change some parts of the limb before using it.
34+
29## Examples
35## Examples
30
36
31```
37```
@@ -34,4 +40,8 @@ Regular: *2-fixed*, then *jogging*.
34~zod:dojo> =foo [a=1 b=2 c=3 d=4]
40~zod:dojo> =foo [a=1 b=2 c=3 d=4]
35~zod:dojo> %*(+ foo c %hello, d %world)
41~zod:dojo> %*(+ foo c %hello, d %world)
36[b=2 c=%hello d=%world]
42[b=2 c=%hello d=%world]
43+~zod:dojo> =+(foo=[a=1 b=2 c=3] foo(b 7, c 10))
44+[a=1 b=7 c=10]
45+~zod:dojo> %*(foo [foo=[a=1 b=2 c=3]] b 7, c 10)
46+[a=1 b=7 c=10]
37```
47```