I wish there was more explanation with the = sign in Erlang. In that it's not an assignment but a pattern match first.
IIRC, it pattern match first and if the variable is not assign then it'll assign it IIRC. The code and explanation just state that it's Erlang to do assertion.
I think that's an interesting concept at least when I play with Erlang.