on master help sign in
Replaced calls to "caesar" with "shift"/"unshift"
b10bc10Kevin Gislason
learn/hoon/hoon-tutorial/caesar.md+3−3
@@ -145,7 +145,7 @@ the leg of the subject to something else. In our case, the leg to be changed is
145`msg`, and the thing to replace it is `(cass msg)`. `cass` is a standard-library
145`msg`, and the thing to replace it is `(cass msg)`. `cass` is a standard-library
146gate that converts uppercase letters to lowercase.
146gate that converts uppercase letters to lowercase.
147
147
148−`:- (caesar msg key)` and `(caesar msg key)` simply composes a
148+`:- (shift msg key)` and `(unshift msg key)` simply composes a
149cell of a right-shifted cipher and a left-shifted cell. This is the final output
149cell of a right-shifted cipher and a left-shifted cell. This is the final output
150of our generator.
150of our generator.
151
151
@@ -296,8 +296,8 @@ by.
296`shift` is for encoding, and `unshift` is for decoding. Thus, `shift` calls the
296`shift` is for encoding, and `unshift` is for decoding. Thus, `shift` calls the
297`operate` arm with `(operate message key (encoder key))`, and `unshift` makes
297`operate` arm with `(operate message key (encoder key))`, and `unshift` makes
298that call with `(operate message key (decoder key))`. These both produce the
298that call with `(operate message key (decoder key))`. These both produce the
299−final output of the core, to be called in the form of `(caesar msg key)`
299+final output of the core, to be called in the form of `(shift msg key)`
300−and `(caesar msg key)` at the bottom of the program.
300+and `(unshift msg key)` at the bottom of the program.
301
301
302```
302```
303++ operate
303++ operate