Recent snippets

Popular snippets

  • Active pattern for let binding inside patterns

    The Let active pattern demonstrated by this snippet can be used to assign values to symbols in pattern matching. This is useful for writing complex pattern matching using match as we can handle multiple cases using a single clause.

    64 people like this

    Posted: 15 years ago by Tomas Petricek

  • Minimal XML DSL

    This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.

    374 people like this

    Posted: 15 years ago by Blake Coverett

  • 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

Snippets by tags

math (35) algorithms (25) array (22) generic programming (17) game (32) quotations (21) silverlight (22) wpf (20) lazy (20) computation expression (15) http (18) json (16) collections (16) mailboxprocessor (27) reflection (19) kata (17) string (29) recursion (33) agent (20) tryfsharp (48)

View all...

Database contains 3208 snippets out of which 1719 is public.