on master help sign in
fix error in %= and add runish
commitbbcb79922646a79acaf885c499b6bbb9af2ac12a author~hoclun-rigsep <jim.amberger@gmail.com> dateFri 26 Aug 2016, 15:51 (10 years ago) parentf165360
1 file changed+13−4
docs/hoon/twig/cen-call/tis-make.md+13−4
docs/hoon/twig/cen-call/tis-make.md+13−4
@@ -28,10 +28,19 @@ call `(foo bar)` involves making `foo`, replacing its sample
2828at slot `+6` with `bar`, and taking the `$` limb, you might think
2929`(foo bar)` would mean `:make(foo +6 bar)`.
3030
31−But it's actually `:pin(foo :make($ +2 +6 bar))`. Even if `foo`
32−is a wing, we would just be mutating `+6` within the core that
33−defines the `foo` arm. Instead we want to modify the *product*
34−of `foo` -- the gate -- so we have to pin it into the subject.
31+But it's actually `:pin(foo :per(:make(+2 +6 bar) $))`. Even if `foo` is
32+a wing, we would just be mutating `+6` within the core that defines the
33+`foo` arm. Instead we want to modify the *product* of `foo` -- the gate
34+-- so we have to pin it into the subject.
35+
36+Here's that again using runes:
37+```
38+=+ foo
39+=> %= +2
40+ +6 bar
41+ ==
42+ $
43+```
3544
3645## Examples
3746