Recent snippets

Popular snippets

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

    186 people like this

    Posted: 15 years ago by Tomas Petricek

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

    84 people like this

    Posted: 15 years ago by Dmitri Pavlenkov

  • 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

kata (17) generic programming (17) async (98) array (22) monad (24) fold (22) game (32) http (18) web (29) json (16) wpf (20) seq (54) recursion (33) tutorial (17) algorithms (25) reflection (19) computation expression (15) pattern matching (15) silverlight (22) lazy (20)

View all...

Database contains 3208 snippets out of which 1719 is public.