F# Snippets

Recently added snippets

  • Two Logicians

    Solves the "Two Logicians" puzzle.

    Posted: 10 days ago by Vandroiy

  • Similar string Markov chain

    Generates strings that are similar to the input, as measured by the probability of a symbol depending on preceding symbols. (Markov chain) The order, which defines how many preceding symbols to look at before placing another, is variable.

    Posted: 17 days ago by Vandroiy

  • Lock-free, mutable list

    Lock-free, mutable list that supports multi-threading scenarios.

    Posted: 27 days ago by Ruxo Zheng

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.

    94 people like this
    Posted: 3 years ago by Antonio Cisternino

  • NUnit Sugar

    Some simple functions for writing more idiomatic F# tests with NUnit.

    77 people like this
    Posted: 3 years ago by Ryan Riley

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

    367 people like this
    Posted: 10 months ago by Muhammad Mugees Asif

  • Implementing active objects with a MailboxProcessor

    Mailbox processors can easily be used to implement active objects. This example shows how to do that with a reusable wrapper type and minimal boilerplate code in the actual class definitions. Supports both asynchronous calls and synchronous calls. For the latter case, exceptions are automatically propagated back to the caller.

    79 people like this
    Posted: 3 years ago by Wolfgang Meyer

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    97 people like this
    Posted: 3 years ago by Tao Liu

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

    81 people like this
    Posted: 3 years ago by Tomas Petricek

Snippets by tags

lazy (17) Learning F# (15) agent (18) computation builder (13) tutorial (15) parsing (21) Seq (42) recursion (24) reflection (18) DSL (21) string (15) MailboxProcessor (21) list (40) Kata (16) math (28) F# (33) game (22) SilverLight (21) collections (13) fold (13) Design Patterns (18) WPF (15) tryfsharp (41) monad (18) async (69) web (15) Algorithms (21) sequences (43) Sequence (28) lists (13)
View all..

Snippets by authors

View all..

Database contains 1486 snippets out of which 1111 are public.