Recent snippets

Popular snippets

  • 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

  • Command pattern for Redo-Undo II

    This command redo-undo implement group the command under Do/Undo category.

    70 people like this

    Posted: 14 years ago by Tao Liu

Snippets by tags

math (35) http (18) sequences (48) list (56) web (29) computation builder (17) regex (17) kata (17) string (29) quotations (21) array (22) seq (54) collections (16) staging (18) mailboxprocessor (27) game (32) recursion (33) pattern matching (15) f# (43) silverlight (22)

View all...

Database contains 3206 snippets out of which 1719 is public.