Recent snippets

Popular snippets

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

    69 people like this

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

    104 people like this

    Posted: 6 years ago by Antonio Cisternino

  • Pipeline list processing

    An example showing how to process list in a pipeline. We first use List.filter to return only even numbers and then use to format them as strings.

    87 people like this

    Posted: 6 years ago by Tomas Petricek

Snippets by tags

learning f# (16) recursion (26) monad (20) list (49) seq (49) collections (16) tryfsharp (48) parsing (22) wpf (18) http (14) sequence (29) lists (13) dsl (22) xml (12) regex (12) silverlight (21) json (12) computation builder (14) tutorial (16) lazy (18)

View all...

Database contains 2149 snippets out of which 1482 is public.