Snippets tagged unfold

  • Random Walk

    Random walk on integers starting at zero. At each step, we either add or subtract one depending on a random coin flip. The code uses Seq.unfold to generate infinite sequence.

    53 people like this

    Posted: 12 years ago by James

  • Unfolding Sequences

    Demonstrates how to use unfold to create a sequence of fibonacci numbers

    0 people like this

    Posted: 28 days ago by Dave Yost