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: 14 years ago by Tomas Petricek

  • NUnit Sugar

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

    91 people like this

    Posted: 15 years ago by Ryan Riley

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    100 people like this

    Posted: 15 years ago by Neil Carrier

Snippets by tags

silverlight (22) wpf (20) computation builder (17) staging (18) lazy (20) math (35) tutorial (17) tryfsharp (48) collections (16) dsl (23) algorithms (26) parsing (28) web (29) array (22) regex (17) agent (20) monad (24) async (98) pattern matching (15) json (16)

View all...

Database contains 3207 snippets out of which 1719 is public.