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

    89 people like this

    Posted: 14 years ago by fholm

  • 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

  • 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

Snippets by tags

generic programming (17) game (32) sequence (32) html (16) quotations (21) tutorial (17) monad (24) math (35) design patterns (18) staging (18) reflection (19) regex (17) recursion (33) collections (16) computation builder (17) pattern matching (15) lists (15) kata (17) list (56) web (29)

View all...

Database contains 3207 snippets out of which 1719 is public.