Recent snippets

Popular snippets

  • Filtering lists

    Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.

    77 people like this

    Posted: 15 years ago by Tomas Petricek

  • Adapter pattern

    Invoke the methods from incompatible types

    110 people like this

    Posted: 14 years ago by Tao Liu

  • 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: 15 years ago by Tomas Petricek

Snippets by tags

computation builder (17) sequences (48) silverlight (22) tutorial (17) reflection (19) collections (16) dsl (23) http (18) monad (24) computation expression (15) parsing (28) json (16) fold (22) staging (18) game (32) web (29) quotations (21) lists (15) mailboxprocessor (27) lazy (20)

View all...

Database contains 3208 snippets out of which 1719 is public.