Recent snippets

Popular snippets

  • 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

  • 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

  • Monadic Memoization

    Modular memoization within a pure functional setting that is implemented as a convenient computation builder.

    91 people like this

    Posted: 14 years ago by Nick Palladinos

Snippets by tags

generic programming (17) computation builder (17) computation expression (15) seq (54) web (29) agent (20) wpf (20) list (56) sequences (48) json (16) monad (24) http (18) tutorial (17) pattern matching (15) reflection (19) parsing (28) algorithms (26) regex (17) lists (15) collections (16)

View all...

Database contains 3206 snippets out of which 1719 is public.