on master help sign in
updated pre request
7d27039David Kerschner
tutorials/hoon/molds.md+1−14
@@ -26,7 +26,7 @@ A mold is compiled to a gate that takes in any noun and produces a typed value,
26:: crashes
26:: crashes
27```
27```
28
28
29−To coerce using a gate, it's good practice to use the `;;` rune, which can parse inline molds without requiring a comma:
29+To coerce using a gate, it's good practice to use the `;;` rune, which can parse inline molds.
30
30
31
31
32```
32```
@@ -39,19 +39,6 @@ To coerce using a gate, it's good practice to use the `;;` rune, which can parse
39```
39```
40
40
41
41
42−Without using `;;`, you would have to start the mold definition with a comma in order for it to be parsed as a mold, not just as a pair of gates with faces on them:
43−
44−
45−```hoon
46−(,[feet=@ud inches=@ud] [5 11])
47−:: produces [feet=5 inches=11]
48−
49−
50−([feet=@ud inches=@ud] [5 11])
51−:: compiler error, can't find $ at axis 2 because this is a pair, not a mold
52−```
53−
54−
55`|$` is the mold builder rune which takes a list of molds and produces a mold.
42`|$` is the mold builder rune which takes a list of molds and produces a mold.
56
43
57`|$` implements [parametric
44`|$` implements [parametric