<div dir="ltr">Just a slight correction.<br><br><span style="font-family: courier new,monospace;"> State = apply(M, F, [InitialState]),</span><br><br>would be better as<br><br><span style="font-family: courier new,monospace;"> State = M:F(InitialState),</span><br>
<br>I'm kind of new to Erlang so sometimes these things don't occur to me until later (after I press Send ;)<br><br></div>