-block">[0.0400418, 0.0009054433, 0.0211621, 0.007027078, 0.09036362, 0.04034937, 0.001748984, 0.0001424373]</div></div><div class="cell"><div class="code-block">
</div></div><div class="cell"><div class="prose-block"><p>This is why you nearly always want to make the key the final input parameter, and why you might want to curry it separately.</p>
</div></div><div class="cell"><div class="prose-block"><h2>Exercise</h2>
<p>Write a function to simulate a 1d <a href="https://en.wikipedia.org/wiki/Random_walk">