Closed yallop closed 10 years ago
Description fleshed out a bit.
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.
Fixed by #12.
list
)null
, which is sui generis)match
should be sufficient: no need for destructuringlet
or forfunction
when
guards