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.

    105 people like this

    Posted: 10 years ago by Antonio Cisternino

  • Filtering lists

    Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.

    68 people like this

    Posted: 10 years ago by Tomas Petricek

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    89 people like this

    Posted: 10 years ago by Neil Carrier

Snippets by tags

sequence (32) staging (18) game (32) fold (21) reflection (19) seq (54) agent (20) fparsec (15) f# (44) kata (17) list (55) recursion (32) generic programming (17) quotations (21) learning f# (16) lazy (20) async (96) lists (14) html (15) collections (16)

View all...

Database contains 2763 snippets out of which 1663 is public.