Recent snippets

Popular snippets

  • Association list lookup

    While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.

    68 people like this

    Posted: 15 years ago by Alex Muscar

  • 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

  • Largest Palindrome Number from Product of Two Three Digit Numbers

    Here is an improved version twice shorter, than original

    72 people like this

    Posted: 15 years ago by Nick Canzoneri

Snippets by tags

mailboxprocessor (27) parsing (28) recursion (33) fold (22) async (98) html (16) math (35) f# (43) dsl (23) game (32) collections (16) array (22) agent (20) computation expression (15) string (29) wpf (20) kata (17) web (29) computation builder (17) lists (15)

View all...

Database contains 3207 snippets out of which 1719 is public.