Recent snippets

Popular snippets

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    100 people like this

    Posted: 15 years ago by Neil Carrier

  • 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

  • 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

Snippets by tags

f# (43) tryfsharp (48) computation builder (17) list (56) sequences (48) json (16) design patterns (18) parsing (28) monad (24) computation expression (15) mailboxprocessor (27) algorithms (25) sequence (32) lists (15) agent (20) regex (17) html (16) quotations (21) game (32) silverlight (22)

View all...

Database contains 3209 snippets out of which 1719 is public.