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

  • 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

  • Read only ref

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

    93 people like this

    Posted: 15 years ago by fholm

Snippets by tags

sequences (48) computation builder (17) seq (54) agent (20) lists (15) f# (43) collections (16) tryfsharp (48) dsl (23) http (18) parsing (28) reflection (19) computation expression (15) web (29) json (16) game (32) tutorial (17) lazy (20) mailboxprocessor (27) generic programming (17)

View all...

Database contains 3208 snippets out of which 1719 is public.