Recent snippets

Popular snippets

  • Asynchronous sequences

    An asynchronous sequence is similar to the seq type, but the elements of the sequence are generated asynchronously without blocking the caller as in Async. This snippet declares asynchronous sequence and uses it to compare two files in 1k blocks.

    109 people like this

    Posted: 14 years ago by Tomas Petricek

  • Wicked way to solve quadratic equation using list of operators

    This is to demonstrate that: (1) there are many ways to solve the same problems; (2) operators can be grouped together into data structures and act as data; (3) you can have fun in F# in many ways.

    57 people like this

    Posted: 14 years ago by Dmitry Soshnikov

  • Projecting lists

    Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.

    74 people like this

    Posted: 15 years ago by Tomas Petricek

Snippets by tags

lists (15) game (32) pattern matching (15) computation builder (17) learning f# (16) reflection (19) lazy (20) algorithms (26) http (18) design patterns (18) html (16) recursion (33) silverlight (22) generic programming (17) kata (17) f# (43) computation expression (15) async (98) math (35) quotations (21)

View all...

Database contains 3207 snippets out of which 1719 is public.