on master help sign in
Merge pull request #100 from hoclun-rigsep/master

fix error in %= and add runish

commitd281de2116bafe2a25b063d7b73ca27489b497f6 authorcgyarvin <curtis.yarvin@gmail.com> dateWed 31 Aug 2016, 14:23 (10 years ago) parentec19471bbcb799
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