Recent snippets

Popular snippets

  • Factory Pattern

    Factory pattern in F#

    82 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.

    63 people like this

    Posted: 15 years ago by Ryan Riley

  • A beautiful fixed-point finding function

    We start with an initial value and then applying f repeatedly, until the value does not change anymore.

    303 people like this

    Posted: 15 years ago by Nick Palladinos

Snippets by tags

tutorial (17) dsl (23) seq (54) sequences (48) html (16) algorithms (25) game (32) pattern matching (15) computation expression (15) generic programming (17) recursion (33) monad (24) web (29) lazy (20) array (22) list (56) sequence (32) lists (15) tryfsharp (48) agent (20)

View all...

Database contains 3208 snippets out of which 1719 is public.