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.

    61 people like this

    Posted: 6 years ago by Tomas Petricek

  • Active pattern for let binding inside patterns

    The Let active pattern demonstrated by this snippet can be used to assign values to symbols in pattern matching. This is useful for writing complex pattern matching using match as we can handle multiple cases using a single clause.

    64 people like this

    Posted: 6 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.

    102 people like this

    Posted: 6 years ago by Antonio Cisternino

Snippets by tags

seq (48) monad (20) html (14) recursion (26) sequences (46) math (32) game (30) design patterns (18) http (14) regex (12) learning f# (16) computation builder (13) web (23) json (12) array (18) list (49) quotations (17) option (12) mailboxprocessor (25) f# (42)

View all...

Database contains 2057 snippets out of which 1441 is public.