Recently added snippets
Implements a simple agent that lets you throttle the degree of parallelism by limiting the number of work items that are processed in parallel.
Posted: 2 days ago by Tomas Petricek
Naive performance comparison of push model libraries: Reactive Extension (Rx), Observable module (built-in to F#) and Nessos Streams. Note: smaller numbers are better
Posted: 4 days ago by Phillip Trelford
This is a simple way to flat a two dimensional array in a linear one
Posted: 9 days ago by Riccardo Terrell
Solves the "Two Logicians" puzzle.
Posted: 10 days ago by Vandroiy
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 that supports multi-threading scenarios.
Posted: 27 days ago by Ruxo Zheng
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
Some simple functions for writing more idiomatic F# tests with NUnit.
77 people like this
Posted: 3 years ago by Ryan Riley
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
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
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
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 tagsView all..
Snippets by authorsView all..
Database contains 1486 snippets out of which 1111 are public.