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.

    109 people like this

    Posted: 15 years ago by Antonio Cisternino

  • Monadic Memoization

    Modular memoization within a pure functional setting that is implemented as a convenient computation builder.

    92 people like this

    Posted: 14 years ago by Nick Palladinos

  • Break sequence into n-element subsequences

    I'm working on parallel computations and I thought it would be useful to break work into chunks, especially when processing each element asynchronously is too expensive. The neat thing is that this function is general even though motivation for it is specific. Another neat thing is that this is true lazy sequence unlike what you'd get if you used Seq.groupBy. There are three versions for your enjoyment.

    73 people like this

    Posted: 15 years ago by Dmitri Pavlenkov

Snippets by tags

async (98) parsing (28) array (22) wpf (20) mailboxprocessor (27) html (16) dsl (23) computation builder (17) learning f# (16) monad (24) algorithms (25) silverlight (22) collections (16) recursion (33) sequences (48) tryfsharp (48) staging (18) tutorial (17) string (29) lazy (20)

View all...

Database contains 3208 snippets out of which 1719 is public.