on master help sign in
Merge pull request #803 from Zaphod101010/master

fix rune names

commit37de759ddd91d0575d3e0b6024b4c1d22e52c3b8 authorpoprox <51337059+syzygyzer@users.noreply.github.com> dateWed 12 Feb 2020, 10:33 (7 years ago) parent435d82a1e4aed1
1 file changed+2−2
tutorials/hoon/conditionals.md+2−2
tutorials/hoon/conditionals.md+2−2
@@ -71,7 +71,7 @@ This marks the end of the list of children of `?&`.
7171
7272We only utilized one "wut" rune in our walkthrough, but there are many others. Here are a few more examples:
7373
74−- `?:` (pronounced "wut-pam") is the simplest "wut" rune. It takes three children, also called sub-expressions. The first child is a boolean test, so it looks for a `%.y` or a `%.n`. The second child is a yes-branch, which is what we arrive at if the aforementioned boolean test evaluates to `%.y`. The third child is a no-branch, which we arrive at if the boolean test evaluates to `%.n`. These branches can contain any sort of Hoon expression, including further conditional expressions. Instead of the `?&` expression in our `%say` generator above, we could have written
74+- `?:` (pronounced "wut-col") is the simplest "wut" rune. It takes three children, also called sub-expressions. The first child is a boolean test, so it looks for a `%.y` or a `%.n`. The second child is a yes-branch, which is what we arrive at if the aforementioned boolean test evaluates to `%.y`. The third child is a no-branch, which we arrive at if the boolean test evaluates to `%.n`. These branches can contain any sort of Hoon expression, including further conditional expressions. Instead of the `?&` expression in our `%say` generator above, we could have written
7575
7676```hoon
7777?: ?& (gte n 1)
@@ -83,7 +83,7 @@ We only utilized one "wut" rune in our walkthrough, but there are many others. H
8383```
8484Of course, doing so would be needlessly obfuscating - we mention this only to illustrate that these two Hoon expressions have the same product.
8585
86−- `?!` ("wut-zup") is the logical "NOT" operator, which inverts the truth value of its single child. Instead of `(lte n 100)` in our `%say` generator above, we could have written `?! (gth n 100)`. Again, this would be bad practice, we only present this as an example.
86+- `?!` ("wut-zap") is the logical "NOT" operator, which inverts the truth value of its single child. Instead of `(lte n 100)` in our `%say` generator above, we could have written `?! (gth n 100)`. Again, this would be bad practice, we only present this as an example.
8787
8888- `?@` takes three children. It branches on whether its first child is an [atom](/docs/glossary/atom/).
8989