Recent snippets

Popular snippets

  • 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

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    75 people like this

    Posted: 15 years ago by Robert Pickering

  • Factory Pattern

    Factory pattern in F#

    82 people like this

    Posted: 14 years ago by Tao Liu

Snippets by tags

pattern matching (15) computation builder (17) html (16) design patterns (18) reflection (19) sequences (48) recursion (33) f# (43) quotations (21) monad (24) collections (16) string (29) json (16) dsl (23) game (32) silverlight (22) seq (54) generic programming (17) sequence (32) tutorial (17)

View all...

Database contains 3208 snippets out of which 1719 is public.