Recent snippets

Popular snippets

  • 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

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    100 people like this

    Posted: 15 years ago by Neil Carrier

  • Factory Pattern

    Factory pattern in F#

    81 people like this

    Posted: 14 years ago by Tao Liu

Snippets by tags

math (35) json (16) pattern matching (15) agent (20) design patterns (18) computation builder (17) reflection (19) sequences (48) learning f# (16) mailboxprocessor (27) seq (54) recursion (33) dsl (23) string (29) html (16) lazy (20) list (56) tutorial (17) parsing (28) algorithms (26)

View all...

Database contains 3207 snippets out of which 1719 is public.