Recent snippets

Popular snippets

  • Projecting lists

    Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.

    74 people like this

    Posted: 14 years ago by Tomas Petricek

  • 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

  • Read only ref

    F# implementation of RO_ref from the "Effective ML" talk.

    92 people like this

    Posted: 14 years ago by fholm

Snippets by tags

monad (24) generic programming (17) tutorial (17) pattern matching (15) seq (54) math (35) string (29) algorithms (26) async (98) collections (16) tryfsharp (48) design patterns (18) dsl (23) recursion (33) json (16) sequences (48) silverlight (22) lazy (20) parsing (28) computation expression (15)

View all...

Database contains 3205 snippets out of which 1719 is public.