on master help sign in
Update caesar.md
2f047b4rmariani
tutorials/hoon/caesar.md+4−2
@@ -116,8 +116,7 @@ itself before reading the explanation.
116```hoon
116```hoon
117!:
117!:
118|= [msg=tape key=@ud]
118|= [msg=tape key=@ud]
119−=+ ^= caesar
119+=<
120− |%
121```
120```
122
121
123The `!:` in the first line of the above code enables a full stack trace in the
122The `!:` in the first line of the above code enables a full stack trace in the
@@ -139,6 +138,7 @@ allows us reference the core's contained arms before they are defined. Without
139=. msg (cass msg)
138=. msg (cass msg)
140:- (shift msg key)
139:- (shift msg key)
141(unshift msg key)
140(unshift msg key)
141+|%
142```
142```
143
143
144`=. msg (cass msg)` changes the input string `msg` to lowercases. `=.` changes
144`=. msg (cass msg)` changes the input string `msg` to lowercases. `=.` changes
@@ -150,6 +150,8 @@ gate that converts uppercase letters to lowercase.
150cell of a right-shifted cipher and a left-shifted cell. This is the final output
150cell of a right-shifted cipher and a left-shifted cell. This is the final output
151of our generator.
151of our generator.
152
152
153+`|%` creates a core.
154+
153```hoon
155```hoon
154 ++ rott
156 ++ rott
155 |= [m=tape n=@ud]
157 |= [m=tape n=@ud]