ocamllabs / 2048-tutorial

OCaml tutorial based on the 2048 game
49 stars 12 forks source link

Notebook: datatypes #2

Closed yallop closed 10 years ago

yallop commented 10 years ago
yallop commented 10 years ago

Description fleshed out a bit.

lpw25 commented 10 years ago

Forgot to read this before writing the first draft. The main thing I'm missing is Lists, which I do not talk about as a variant type. This is partly because they have specialised syntax, and partly because I already used them in the "basics" notebook. At the very least, I should add a sub-section on pattern matching lists.

I'm also missing a sub-section on when guards.

yallop commented 10 years ago

Fixed by #12.