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

  • 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

  • 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

Snippets by tags

silverlight (22) lists (15) monad (24) wpf (20) math (35) async (98) quotations (21) html (16) fold (22) agent (20) dsl (23) lazy (20) mailboxprocessor (27) http (18) generic programming (17) tryfsharp (48) learning f# (16) kata (17) pattern matching (15) collections (16)

View all...

Database contains 3208 snippets out of which 1719 is public.