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

  • 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

  • Load XAML

    This example shows how to load a Xaml file allowing to use WPF from F#. It also shows how to access WPF objects and register event handlers.

    109 people like this

    Posted: 15 years ago by Antonio Cisternino

Snippets by tags

monad (24) silverlight (22) string (29) html (16) recursion (33) wpf (20) quotations (21) game (32) tryfsharp (48) lazy (20) sequence (32) tutorial (17) staging (18) design patterns (18) lists (15) kata (17) parsing (28) http (18) fold (22) pattern matching (15)

View all...

Database contains 3208 snippets out of which 1719 is public.