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

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

    75 people like this

    Posted: 15 years ago by Tomas Petricek

  • Monadic Memoization

    Modular memoization within a pure functional setting that is implemented as a convenient computation builder.

    92 people like this

    Posted: 15 years ago by Nick Palladinos

Snippets by tags

tryfsharp (48) sequence (32) computation expression (15) computation builder (17) quotations (21) lists (15) silverlight (22) agent (20) algorithms (25) monad (24) async (98) sequences (48) kata (17) fold (22) string (29) design patterns (18) game (32) http (18) html (16) collections (16)

View all...

Database contains 3212 snippets out of which 1719 is public.