F# Snippets

Recently added snippets

Popular snippets

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

    84 people like this
    Posted: 4 years ago by Tomas Petricek

  • A beautiful fixed-point finding function

    We start with an initial value and then applying f repeatedly, until the value does not change anymore.

    277 people like this
    Posted: 4 years ago by Nick Palladinos

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

    101 people like this
    Posted: 4 years ago by Antonio Cisternino

  • Asynchronous sequences

    An asynchronous sequence is similar to the seq<T> type, but the elements of the sequence are generated asynchronously without blocking the caller as in Async<T>. This snippet declares asynchronous sequence and uses it to compare two files in 1k blocks.

    97 people like this
    Posted: 4 years ago by Tomas Petricek

  • Exploring Population Data

    Learn Key Principle of F# in just a few minutes with the following Sample of "World Bank Type Provider - Exploring Population Data"

    369 people like this
    Posted: 1 years ago by Muhammad Mugees Asif

  • Top-Down-Operator-Precedence Parser

    F# implementation of a generic Top-Down-Operator-Precedence Parser as described in this paper http://portal.acm.org/citation.cfm?id=512931 Example starts at line ~300

    82 people like this
    Posted: 4 years ago by fholm

Snippets by tags

web (17) fold (15) async (80) tutorial (15) MailboxProcessor (22) DSL (22) game (29) sequences (44) tryfsharp (44) recursion (24) SilverLight (21) agent (19) computation builder (13) math (29) parsing (22) Sequence (28) Learning F# (15) monad (18) Collections (16) Algorithms (23) Kata (16) Design Patterns (18) Seq (44) lazy (17) Lists (13) reflection (18) string (16) f# (38) list (46) WPF (16)
View all..

Snippets by authors

View all..

Database contains 1685 snippets out of which 1241 are public.