Recent snippets

Popular snippets

  • Haskell function : iterate

    Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.

    203 people like this

    Posted: 15 years ago by Nick Palladinos

  • The Haskell const function

    The const function is simple, but you can use it to make your code more legible. In this example we convert a unary function to a function of arity 2 (that ignores the second argument). Also by using the flip function from Haskell (which is equally easy to define) you can ignore the first argument.

    119 people like this

    Posted: 15 years ago by Alex Muscar

  • 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

Snippets by tags

reflection (19) pattern matching (15) seq (54) silverlight (22) collections (16) regex (17) f# (43) lists (15) design patterns (18) recursion (33) tutorial (17) quotations (21) html (16) kata (17) learning f# (16) sequence (32) async (98) fold (22) parsing (28) json (16)

View all...

Database contains 3208 snippets out of which 1719 is public.