F# Snippets

Recently added snippets

  • WPF Command in F#

    demonstrate how to use object expression to create a WPF/Silverlight command.

    Posted: 8 hours ago by Tao Liu

  • csproj-file parsing with Linq2Xml - part 2

    This program reads all *.csproj-files from a path and then uses Linq2Xml to show or modify data about the projects. This should be a good template for scripts to manage tons of c#-project files. F# and LINQ-to-XML is very powerful combination.

    Posted: 12 hours ago by Tuomas Hietanen

  • Take a sample of a sequence

    Take a sample of a specified length from a sequence. The sample is guaranteed to be of the requested size (unless there are too few elements in the original sequence). Sample items will be taken at equal intervals, with possibly a shorter interval at the end if the sequence length is not evenly divisible by the sample size.

    Posted: 2 days ago by Kit Eason

Popular snippets

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    52 people like this
    Posted: 1 years ago by Robert Pickering

  • 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 List.map to format them as strings.

    68 people like this
    Posted: 1 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.

    54 people like this
    Posted: 1 years ago by Antonio Cisternino

Snippets by tags

View all..

Snippets by authors

View all..

Database contains 647 snippets out of which 512 are public.