Recent snippets

Popular snippets

  • Top-Down-Operator-Precedence Parser

    F# implementation of a generic Top-Down-Operator-Precedence Parser as described in this paper http://portal.acm.org/citation.cfm?id=512931 Example starts at line ~300

    90 people like this

    Posted: 15 years ago by fholm

  • Filtering lists

    Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.

    77 people like this

    Posted: 15 years ago by Tomas Petricek

  • 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

Snippets by tags

quotations (21) sequences (48) wpf (20) computation builder (17) game (32) parsing (28) lazy (20) computation expression (15) collections (16) silverlight (22) design patterns (18) monad (24) algorithms (25) list (56) tryfsharp (48) web (29) lists (15) agent (20) string (29) tutorial (17)

View all...

Database contains 3208 snippets out of which 1719 is public.