Recent snippets

Popular snippets

  • Asynchronous sequences

    An asynchronous sequence is similar to the seq type, but the elements of the sequence are generated asynchronously without blocking the caller as in Async. This snippet declares asynchronous sequence and uses it to compare two files in 1k blocks.

    109 people like this

    Posted: 15 years ago by Tomas Petricek

  • Strategy pattern

    Strategy pattern in F#

    83 people like this

    Posted: 14 years ago by Tao Liu

  • 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: 15 years ago by Ryan Riley

Snippets by tags

math (35) list (56) sequences (48) f# (43) async (98) lazy (20) http (18) fold (22) mailboxprocessor (27) learning f# (16) computation expression (15) web (29) json (16) regex (17) game (32) reflection (19) design patterns (18) dsl (23) silverlight (22) collections (16)

View all...

Database contains 3208 snippets out of which 1719 is public.