Recent snippets

Popular snippets

  • NUnit Sugar

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

    91 people like this

    Posted: 15 years ago by Ryan Riley

  • 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

  • Partition a sequence until a predicate is satiated

    This function is given a partition predicate and a sequence. Until the predicate returns false, a list will be filled with elements. When it is, both the list and the remainder of the sequence will be returned. Note that this example preserves the laziness of the unchecked sequence elements.

    70 people like this

    Posted: 15 years ago by Rick Minerich

Snippets by tags

recursion (33) web (29) game (32) design patterns (18) lazy (20) agent (20) pattern matching (15) tryfsharp (48) monad (24) list (56) sequence (32) string (29) staging (18) learning f# (16) html (16) tutorial (17) sequences (48) array (22) lists (15) mailboxprocessor (27)

View all...

Database contains 3208 snippets out of which 1719 is public.