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

  • 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.

    88 people like this

    Posted: 8 years ago by Neil Carrier

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

Snippets by tags

collections (16) array (21) string (22) seq (54) regex (15) web (24) agent (20) algorithms (25) staging (18) math (34) async (95) design patterns (18) reflection (18) lazy (19) wpf (20) fold (20) http (15) silverlight (22) sequences (47) html (15)

View all...

Database contains 2365 snippets out of which 1607 is public.