Recent snippets

Popular snippets

  • Monadic Memoization

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

    92 people like this

    Posted: 15 years ago by Nick Palladinos

  • 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: 15 years ago by Wolfgang Meyer

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    100 people like this

    Posted: 15 years ago by Neil Carrier

Snippets by tags

math (35) async (98) sequences (48) fold (22) generic programming (17) f# (43) learning f# (16) recursion (33) lazy (20) silverlight (22) computation expression (15) web (29) collections (16) json (16) wpf (20) dsl (23) tryfsharp (48) mailboxprocessor (27) design patterns (18) algorithms (25)

View all...

Database contains 3209 snippets out of which 1719 is public.