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

  • 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

  • Adapter pattern

    Invoke the methods from incompatible types

    111 people like this

    Posted: 14 years ago by Tao Liu

Snippets by tags

list (56) learning f# (16) lists (15) design patterns (18) recursion (33) html (16) string (29) staging (18) f# (43) sequences (48) math (35) async (98) tryfsharp (48) generic programming (17) reflection (19) collections (16) array (22) pattern matching (15) computation builder (17) agent (20)

View all...

Database contains 3208 snippets out of which 1719 is public.