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: 6 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.

    175 people like this

    Posted: 6 years ago by Tomas Petricek

  • 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.

    104 people like this

    Posted: 6 years ago by Antonio Cisternino

Snippets by tags

array (18) wpf (17) fparsec (14) staging (14) reflection (18) json (12) tryfsharp (48) regex (12) computation builder (13) collections (16) monad (20) parsing (22) tutorial (16) string (17) async (91) sequence (29) game (30) web (23) silverlight (21) fold (19)

View all...

Database contains 2114 snippets out of which 1458 is public.