Recent snippets

Popular snippets

  • Split a list

    Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.

    83 people like this

    Posted: 14 years ago by Dmitri Pavlenkov

  • NUnit Sugar

    Some simple functions for writing more idiomatic F# tests with NUnit.

    91 people like this

    Posted: 15 years ago by Ryan Riley

  • 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

tutorial (17) monad (24) algorithms (26) pattern matching (15) wpf (20) kata (17) list (56) computation builder (17) json (16) f# (43) game (32) computation expression (15) lists (15) async (98) silverlight (22) staging (18) array (22) generic programming (17) fold (22) web (29)

View all...

Database contains 3208 snippets out of which 1719 is public.