Recent snippets

Popular snippets

  • Asynchronous sequences

    An asynchronous sequence is similar to the seq type, but the elements of the sequence are generated asynchronously without blocking the caller as in Async. This snippet declares asynchronous sequence and uses it to compare two files in 1k blocks.

    109 people like this

    Posted: 14 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: 14 years ago by Blake Coverett

  • 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

Snippets by tags

computation expression (15) collections (16) tutorial (17) math (35) quotations (21) fold (22) algorithms (26) silverlight (22) mailboxprocessor (27) staging (18) game (32) lazy (20) tryfsharp (48) learning f# (16) pattern matching (15) string (29) async (98) wpf (20) json (16) computation builder (17)

View all...

Database contains 3205 snippets out of which 1719 is public.