Recent snippets

Popular snippets

  • Adapter pattern

    Invoke the methods from incompatible types

    110 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

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

    77 people like this

    Posted: 14 years ago by Tomas Petricek

  • Load XAML

    This example shows how to load a Xaml file allowing to use WPF from F#. It also shows how to access WPF objects and register event handlers.

    109 people like this

    Posted: 14 years ago by Antonio Cisternino

  • 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

    89 people like this

    Posted: 14 years ago by fholm

  • 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

web (29) math (35) mailboxprocessor (27) algorithms (26) reflection (19) learning f# (16) string (29) agent (20) game (32) computation expression (15) seq (54) monad (24) sequence (32) recursion (33) generic programming (17) dsl (23) collections (16) lists (15) http (18) list (56)

View all...

Database contains 3205 snippets out of which 1719 is public.