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