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.

    74 people like this

    Posted: 14 years ago by Tomas Petricek

  • Top-Down-Operator-Precedence Parser

    F# implementation of a generic Top-Down-Operator-Precedence Parser as described in this paper http://portal.acm.org/citation.cfm?id=512931 Example starts at line ~300

    90 people like this

    Posted: 14 years ago by fholm

  • Split a list

    Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.

    84 people like this

    Posted: 14 years ago by Dmitri Pavlenkov

Snippets by tags

f# (43) kata (17) reflection (19) math (35) learning f# (16) generic programming (17) lists (15) html (16) quotations (21) design patterns (18) collections (16) pattern matching (15) wpf (20) game (32) fold (22) silverlight (22) parsing (28) lazy (20) algorithms (25) json (16)

View all...

Database contains 3208 snippets out of which 1719 is public.