Skip to content

Instantly share code, notes, and snippets.

@nimaai
Last active December 16, 2016 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nimaai/1a369eda2c6038251db19f7df6873a2b to your computer and use it in GitHub Desktop.
Save nimaai/1a369eda2c6038251db19f7df6873a2b to your computer and use it in GitHub Desktop.
The Book of Shen (3rd edition)

Mistakes:

  • p.165 Figure 14.6 should be:
(10-) (aor+ [(first) [[(tuple) a] b]])
a
(11-) (aor+ [(first) [[(tuple) a] b]])
b
  • p.166 Figure 14.7 should be:
(9-) (define succ -> [lambda x [[(tuple) (f)] x]])
succ
(11-) (define pred -> [lambda x [[[(if') [(zero?) x]] error!] [(second) x]]])
pred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment