on master help sign in
Merge pull request #189 from urbit/fix-cen-tar

upgrade centar docs

commit8a971ef28c3d5762f1edb235db720388b7be7564 authorKeaton Dunsford <keaton.dunsford@gmail.com> dateMon 4 Sep 2017, 16:44 (9 years ago) parentf1a548f89f8de3
1 file changed+10
docs/hoon/twig/cen-call/tar-bake.md+10
docs/hoon/twig/cen-call/tar-bake.md+10
@@ -26,6 +26,12 @@ r
2626
2727Regular: *2-fixed*, then *jogging*.
2828
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+
2935## Examples
3036
3137```
@@ -34,4 +40,8 @@ Regular: *2-fixed*, then *jogging*.
3440~zod:dojo> =foo [a=1 b=2 c=3 d=4]
3541~zod:dojo> %*(+ foo c %hello, d %world)
3642[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]
3747```