Recent snippets

Popular snippets

  • Factory Pattern

    Factory pattern in F#

    81 people like this

    Posted: 14 years ago by Tao Liu

  • 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.

    73 people like this

    Posted: 14 years ago by Tomas Petricek

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

Snippets by tags

pattern matching (15) parsing (28) design patterns (18) html (16) quotations (21) lazy (20) sequence (32) generic programming (17) wpf (20) silverlight (22) kata (17) computation expression (15) array (22) tryfsharp (48) async (98) sequences (48) f# (43) seq (54) computation builder (17) staging (18)

View all...

Database contains 3206 snippets out of which 1719 is public.