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.

    71 people like this

    Posted: 14 years ago by Tomas Petricek

  • Filtering lists

    Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.

    76 people like this

    Posted: 14 years ago by Tomas Petricek

  • Struct Tuple

    Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.

    77 people like this

    Posted: 14 years ago by fholm

Snippets by tags

lists (15) design patterns (18) async (98) pattern matching (15) recursion (33) array (22) regex (17) tutorial (17) computation builder (17) f# (43) mailboxprocessor (27) json (15) html (16) agent (20) lazy (20) fold (22) parsing (28) algorithms (26) wpf (20) sequences (48)

View all...

Database contains 3200 snippets out of which 1714 is public.