Recent snippets

Popular snippets

  • Monadic Memoization

    Modular memoization within a pure functional setting that is implemented as a convenient computation builder.

    91 people like this

    Posted: 14 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: 14 years ago by Alex Muscar

  • Struct Tuple

    Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.

    77 people like this

    Posted: 14 years ago by fholm

Snippets by tags

agent (20) recursion (33) fold (22) web (29) lazy (20) design patterns (18) http (18) staging (18) lists (15) silverlight (22) dsl (23) seq (54) list (56) sequences (48) collections (16) html (16) f# (43) generic programming (17) learning f# (16) array (22)

View all...

Database contains 3206 snippets out of which 1719 is public.