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

  • Struct Tuple

    Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.

    77 people like this

    Posted: 14 years ago by fholm

  • Split a list

    Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.

    83 people like this

    Posted: 14 years ago by Dmitri Pavlenkov

Snippets by tags

regex (17) agent (20) parsing (28) kata (17) reflection (19) monad (24) http (18) learning f# (16) staging (18) dsl (23) f# (43) array (22) tutorial (17) collections (16) html (16) sequence (32) fold (22) computation builder (17) list (56) computation expression (15)

View all...

Database contains 3206 snippets out of which 1719 is public.