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

  • Chain of responsibility

    The following sample wants to make sure the person’s age is between 18 and 65, weight is no more than 200 and tall enough (>120).

    83 people like this

    Posted: 14 years ago by Tao Liu

  • Hello world (F#)

    Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.

    185 people like this

    Posted: 15 years ago by Tomas Petricek

Snippets by tags

collections (16) lazy (20) game (32) seq (54) string (29) sequences (48) generic programming (17) parsing (28) json (16) tutorial (17) learning f# (16) http (18) computation builder (17) fold (22) dsl (23) design patterns (18) recursion (33) lists (15) math (35) async (98)

View all...

Database contains 3206 snippets out of which 1719 is public.