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

  • 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

  • NUnit Sugar

    Some simple functions for writing more idiomatic F# tests with NUnit.

    91 people like this

    Posted: 14 years ago by Ryan Riley

Snippets by tags

seq (54) kata (17) parsing (28) design patterns (18) reflection (19) string (29) fold (22) async (98) tutorial (17) staging (18) pattern matching (15) json (16) sequence (32) http (18) collections (16) lists (15) agent (20) dsl (23) generic programming (17) array (22)

View all...

Database contains 3205 snippets out of which 1719 is public.