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.

    75 people like this

    Posted: 16 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: 16 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.

    84 people like this

    Posted: 15 years ago by Dmitri Pavlenkov

Snippets by tags

staging (18) http (18) tutorial (17) string (29) math (35) regex (17) silverlight (22) game (32) sequences (48) generic programming (17) computation expression (15) sequence (32) seq (54) tryfsharp (48) json (16) kata (17) agent (20) fold (22) monad (24) web (29)

View all...

Database contains 3212 snippets out of which 1719 is public.