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

  • Haskell function : iterate

    Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.

    203 people like this

    Posted: 15 years ago by Nick Palladinos

  • 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

Snippets by tags

pattern matching (15) lazy (20) computation builder (17) sequence (32) game (32) tutorial (17) silverlight (22) string (29) sequences (48) fold (22) kata (17) wpf (20) staging (18) math (35) seq (54) quotations (21) collections (16) f# (43) html (16) algorithms (25)

View all...

Database contains 3208 snippets out of which 1719 is public.