Recent snippets

Popular snippets

  • Association list lookup

    While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.

    68 people like this

    Posted: 14 years ago by Alex Muscar

  • 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

Snippets by tags

seq (54) mailboxprocessor (27) html (16) async (98) http (18) silverlight (22) collections (16) json (16) staging (18) algorithms (26) math (35) pattern matching (15) agent (20) fold (22) lists (15) f# (43) wpf (20) recursion (33) computation expression (15) game (32)

View all...

Database contains 3206 snippets out of which 1719 is public.