Recent snippets

Popular snippets

  • Largest Palindrome Number from Product of Two Three Digit Numbers

    Here is an improved version twice shorter, than original

    72 people like this

    Posted: 14 years ago by Nick Canzoneri

  • 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

  • Composable WCF Web API using Async

    A functional wrapper around the new WCF Web APIs (http://wcf.codeplex.com/). Composition is achieved through the use of the HttpRequestMessage -> Async signature. Pushing the app calls in the MessageHandler intercepts all requests and allows you to take control at the earliest point possible before operation selection occurs. Extending this slightly to call the innerChannel's SendAsync would allow you to create a middleware layer that would work both with this and other, normal Web API services.

    57 people like this

    Posted: 14 years ago by Ryan Riley

Snippets by tags

regex (17) math (35) string (29) tutorial (17) collections (16) pattern matching (15) web (29) fold (22) silverlight (22) generic programming (17) game (32) agent (20) array (22) computation expression (15) monad (24) html (16) reflection (19) f# (43) tryfsharp (48) async (98)

View all...

Database contains 3206 snippets out of which 1719 is public.