Recent snippets

Popular snippets

  • Association list lookup

    While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.

    68 people like this

    Posted: 14 years ago by Alex Muscar

  • Hello world (F#)

    Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.

    185 people like this

    Posted: 14 years ago by Tomas Petricek

  • 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

Snippets by tags

kata (17) learning f# (16) tutorial (17) reflection (19) wpf (20) http (18) recursion (33) collections (16) monad (24) silverlight (22) pattern matching (15) regex (17) seq (54) design patterns (18) sequence (32) f# (43) sequences (48) lazy (20) dsl (23) string (29)

View all...

Database contains 3198 snippets out of which 1713 is public.