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

    77 people like this

    Posted: 6 years ago by Novox

  • Doughnut chart using chart controls

    The snippet shows how to use Microsoft Chart Controls (available in .NET 4.0 and for .NET 3.5) to draw a Doughnut chart. The sample shows proportion of seats taken by parties in UK elections.

    84 people like this

    Posted: 6 years ago by Tomas Petricek

  • Command pattern for Redo-Undo II

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

    60 people like this

    Posted: 5 years ago by Tao Liu

Snippets by tags

f# (42) monad (20) xml (12) kata (17) list (49) algorithms (25) tutorial (16) collections (16) recursion (26) tryfsharp (48) game (30) silverlight (21) lazy (18) lists (13) html (14) web (23) seq (48) string (17) array (18) pattern matching (12)

View all...

Database contains 2099 snippets out of which 1452 is public.