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: 16 years ago by Robert Pickering

  • Dynamic operator using Reflection

    Demonstrates how to implement the dynamic operator (?) using .NET Reflection. The implementation supports calling constructors, propreties and methods using simple overload resolution (based on parameter count). It handles instance as well as static members.

    74 people like this

    Posted: 15 years ago by Tomas Petricek

Snippets by tags

parsing (28) string (29) web (29) tryfsharp (48) regex (17) list (56) staging (18) lazy (20) seq (54) recursion (33) json (16) reflection (19) html (16) monad (24) game (32) computation expression (15) dsl (23) design patterns (18) sequences (48) http (18)

View all...

Database contains 3212 snippets out of which 1719 is public.