Recent snippets

Popular snippets

  • Struct Tuple

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

    77 people like this

    Posted: 15 years ago by fholm

  • Strategy pattern

    Strategy pattern in F#

    83 people like this

    Posted: 14 years ago by Tao Liu

  • 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

algorithms (25) sequence (32) computation expression (15) design patterns (18) monad (24) mailboxprocessor (27) regex (17) silverlight (22) f# (43) html (16) generic programming (17) computation builder (17) string (29) collections (16) agent (20) math (35) json (16) parsing (28) array (22) web (29)

View all...

Database contains 3208 snippets out of which 1719 is public.