Recent snippets

Popular snippets

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

    100 people like this

    Posted: 14 years ago by Neil Carrier

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

    76 people like this

    Posted: 14 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: 14 years ago by Antonio Cisternino

Snippets by tags

lists (15) web (29) f# (43) fold (22) dsl (23) agent (20) recursion (33) list (56) generic programming (17) design patterns (18) quotations (21) computation expression (15) wpf (20) computation builder (17) string (29) monad (24) collections (16) reflection (19) learning f# (16) tutorial (17)

View all...

Database contains 3200 snippets out of which 1714 is public.