Recent snippets

Popular snippets

  • 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

  • Haskell function : iterate

    Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.

    203 people like this

    Posted: 15 years ago by Nick Palladinos

  • 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

lists (15) fold (22) recursion (33) monad (24) json (16) pattern matching (15) silverlight (22) tryfsharp (48) f# (43) collections (16) wpf (20) array (22) math (35) design patterns (18) mailboxprocessor (27) learning f# (16) computation expression (15) http (18) html (16) game (32)

View all...

Database contains 3208 snippets out of which 1719 is public.