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

  • 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

  • Read only ref

    F# implementation of RO_ref from the "Effective ML" talk.

    92 people like this

    Posted: 14 years ago by fholm

Snippets by tags

lists (15) computation expression (15) html (16) staging (18) list (56) fold (22) dsl (23) string (29) tryfsharp (48) design patterns (18) game (32) lazy (20) seq (54) json (16) reflection (19) computation builder (17) collections (16) learning f# (16) kata (17) recursion (33)

View all...

Database contains 3208 snippets out of which 1719 is public.