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: 7 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: 9 days ago by Phillip Trelford
This is a simple way to flat a two dimensional array in a linear one
Posted: 14 days ago by Riccardo Terrell
Solves the "Two Logicians" puzzle.
Posted: 15 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: 22 days ago by Vandroiy
Lock-free, mutable list that supports multi-threading scenarios.
Posted: 1 months ago by Ruxo Zheng
I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.
94 people like this
Posted: 3 years ago by Blake Coverett
Get Stock Quote Data and Historical Stock Prices from Yahoo Finance.
217 people like this
Posted: 3 years ago by Tuomas Hietanen
Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.
172 people like this
Posted: 3 years ago by Nick Palladinos
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
Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.
161 people like this
Posted: 3 years ago by Tomas Petricek
Some simple functions for writing more idiomatic F# tests with NUnit.
77 people like this
Posted: 3 years ago by Ryan Riley
Snippets by tagsView all..
Snippets by authorsView all..
Database contains 1486 snippets out of which 1111 are public.