Recent snippets

Popular snippets

  • Command pattern for Redo-Undo II

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

    61 people like this

    Posted: 7 years ago by Tao Liu

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

    79 people like this

    Posted: 8 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.

    107 people like this

    Posted: 8 years ago by Tomas Petricek

Snippets by tags

random (12) fold (19) game (30) json (14) tryfsharp (48) seq (52) monad (22) sequences (47) lists (13) f# (42) string (22) silverlight (22) async (95) html (15) tutorial (17) pattern matching (13) collections (16) reflection (18) lazy (19) learning f# (16)

View all...

Database contains 2307 snippets out of which 1570 is public.