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

  • Haskell function : iterate

    Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.

    203 people like this

    Posted: 14 years ago by Nick Palladinos

  • 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

Snippets by tags

mailboxprocessor (27) string (29) computation builder (17) quotations (21) recursion (33) tutorial (17) dsl (23) http (18) fold (22) tryfsharp (48) lazy (20) list (56) game (32) parsing (28) seq (54) sequences (48) design patterns (18) wpf (20) generic programming (17) reflection (19)

View all...

Database contains 3205 snippets out of which 1719 is public.