Recently added snippets
Simple example of Eto library usage for drawing
Posted: 4 days ago by Antonio Cisternino
Reversing RELEASE_NOTES.md Very ugly version hacked together in a minute
Posted: 12 days ago by Gustavo Guerra
An example of using an actor (MailboxProcessor) to coordinate the projection of events from an event stream into a persisted projection. This example covers handling simple concurrency conflicts via also persisting and checking the latest event ID with with projection. The update command will take the current projection and apply all new events before persisting it back. The rebuild command will ignore an existing projection and replay all events in the stream.
Posted: 14 days ago by Daniel Bradley
test of Async.StartWithContinuations
Posted: 15 days ago by omanuke
Find what's been added, removed or changed between two lists (perfom a diff between two lists of items).
Posted: 16 days ago by Daniel Bradley
Type extensions for ASCII strings represented as byte arrays. Note: requires the F# 3.1 compiler.
Posted: 17 days ago by Phillip Trelford
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.
77 people like this
Posted: 3 years ago by Tomas Petricek
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
Get Stock Quote Data and Historical Stock Prices from Yahoo Finance.
212 people like this
Posted: 3 years ago by Tuomas Hietanen
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
The const function is simple, but you can use it to make your code more legible. In this example we convert a unary function to a function of arity 2 (that ignores the second argument). Also by using the flip function from Haskell (which is equally easy to define) you can ignore the first argument.
99 people like this
Posted: 3 years ago by Alex Muscar
Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.
81 people like this
Posted: 3 years ago by Neil Carrier
Snippets by tagsView all..
Snippets by authorsView all..
Database contains 1467 snippets out of which 1102 are public.