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

  • Implementing active objects with a MailboxProcessor

    Mailbox processors can easily be used to implement active objects. This example shows how to do that with a reusable wrapper type and minimal boilerplate code in the actual class definitions. Supports both asynchronous calls and synchronous calls. For the latter case, exceptions are automatically propagated back to the caller.

    92 people like this

    Posted: 14 years ago by Wolfgang Meyer

  • 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

Snippets by tags

math (35) tutorial (17) http (18) fold (22) algorithms (26) monad (24) pattern matching (15) dsl (23) computation builder (17) json (16) wpf (20) design patterns (18) seq (54) learning f# (16) mailboxprocessor (27) async (98) sequence (32) computation expression (15) recursion (33) kata (17)

View all...

Database contains 3207 snippets out of which 1719 is public.