Recent snippets

Popular snippets

  • Chain of responsibility

    The following sample wants to make sure the person’s age is between 18 and 65, weight is no more than 200 and tall enough (>120).

    85 people like this

    Posted: 14 years ago by Tao Liu

  • 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

  • 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

Snippets by tags

computation builder (17) algorithms (25) learning f# (16) string (29) json (16) generic programming (17) lists (15) kata (17) async (98) quotations (21) collections (16) wpf (20) regex (17) tutorial (17) design patterns (18) dsl (23) tryfsharp (48) web (29) agent (20) recursion (33)

View all...

Database contains 3208 snippets out of which 1719 is public.