Recent snippets

Popular snippets

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    75 people like this

    Posted: 15 years ago by Robert Pickering

  • Minimal XML DSL

    This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.

    374 people like this

    Posted: 15 years ago by Blake Coverett

  • 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: 15 years ago by Novox

Snippets by tags

fold (22) list (56) math (35) reflection (19) seq (54) dsl (23) silverlight (22) game (32) mailboxprocessor (27) algorithms (25) html (16) generic programming (17) collections (16) sequences (48) pattern matching (15) web (29) agent (20) monad (24) json (16) regex (17)

View all...

Database contains 3209 snippets out of which 1719 is public.