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.

    84 people like this

    Posted: 14 years ago by Dmitri Pavlenkov

  • Projecting lists

    Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.

    75 people like this

    Posted: 15 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.

    109 people like this

    Posted: 15 years ago by Antonio Cisternino

Snippets by tags

wpf (20) html (16) game (32) async (98) tryfsharp (48) quotations (21) json (16) tutorial (17) f# (43) kata (17) monad (24) pattern matching (15) recursion (33) learning f# (16) algorithms (25) reflection (19) http (18) collections (16) computation builder (17) silverlight (22)

View all...

Database contains 3208 snippets out of which 1719 is public.