Recent snippets

Popular snippets

  • 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

  • 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

Snippets by tags

parsing (28) tutorial (17) quotations (21) recursion (33) learning f# (16) async (98) kata (17) algorithms (26) json (16) array (22) staging (18) math (35) f# (43) mailboxprocessor (27) list (56) design patterns (18) collections (16) lists (15) sequence (32) computation builder (17)

View all...

Database contains 3208 snippets out of which 1719 is public.