Recent snippets

Popular snippets

  • Adapter pattern

    Invoke the methods from incompatible types

    111 people like this

    Posted: 15 years ago by Tao Liu

  • Struct Tuple

    Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.

    77 people like this

    Posted: 15 years ago by fholm

  • 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

Snippets by tags

dsl (23) f# (43) http (18) list (56) kata (17) algorithms (25) computation expression (15) reflection (19) lazy (20) generic programming (17) json (16) math (35) silverlight (22) async (98) pattern matching (15) game (32) sequences (48) seq (54) design patterns (18) computation builder (17)

View all...

Database contains 3209 snippets out of which 1719 is public.