Recent snippets

Popular snippets

  • Composing a list of functions

    Composition of functions in F# is easily achieved by using the >> operator. You can also chain an arbitary amount of functions (represented as a list or sequence) together by folding the list/seq with >>. [More formally: the set of endomorphisms 'a -> 'a forms a monoid with the binary, associative operator ">>" (or "<<") and the neutral element "id".]

    87 people like this

    Posted: 14 years ago by Novox

  • 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

  • Command pattern for Redo-Undo II

    This command redo-undo implement group the command under Do/Undo category.

    70 people like this

    Posted: 14 years ago by Tao Liu

Snippets by tags

algorithms (26) fold (22) tryfsharp (48) f# (43) collections (16) string (29) list (56) array (22) silverlight (22) html (16) web (29) quotations (21) computation builder (17) recursion (33) regex (17) pattern matching (15) kata (17) monad (24) staging (18) parsing (28)

View all...

Database contains 3205 snippets out of which 1719 is public.