Recent snippets

Popular snippets

  • Composing a list of functions

    Composition of functions in F# is easily achieved by using the >> operator. You can also chain an arbitary amount of functions (represented as a list or sequence) together by folding the list/seq with >>. [More formally: the set of endomorphisms 'a -> 'a forms a monoid with the binary, associative operator ">>" (or "<<") and the neutral element "id".]

    79 people like this

    Posted: 8 years ago by Novox

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

    63 people like this

    Posted: 8 years ago by Tomas Petricek

  • NUnit Sugar

    Some simple functions for writing more idiomatic F# tests with NUnit.

    86 people like this

    Posted: 8 years ago by Ryan Riley

Snippets by tags

fold (19) lists (13) string (22) dsl (22) monad (22) seq (51) agent (20) tryfsharp (48) async (95) game (30) staging (18) kata (17) xml (12) math (32) f# (42) quotations (18) reflection (18) silverlight (22) algorithms (25) recursion (28)

View all...

Database contains 2288 snippets out of which 1557 is public.