Snippets tagged unfold

  • Unfolding Sequences

    Demonstrates how to use unfold to create an infinite list of the fibonacci numbers

    56 people like this

    Posted: 6 years ago by Robert Pickering

  • 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: 6 years ago by James