F# Snippets
Recently added snippets
How to Serialize Record, Discriminated Union and Tuple in Azure?
Here is the implementation of the three types in WCF Azure, and a sample using WCF in worker role, a WPF test project to invoke the three kinds of data type from worker role. Link is http://fsharp3sample.codeplex.com/SourceControl/changeset/view/13524
Posted: 6 mins ago by AndrewXue
Concurrent Memoization
Memoize a function in a thread-safe manner.
Posted: 20 hours ago by Matt Collins
F# yet another Interop example
Quick demo of using F# to interop with a native C library. C Library has not been checked for algorithm correctness (but works exactly as the origional).
Posted: 3 days ago by David Klein
tryNth
Computes the nth value of a sequence if the nth value is past the length of the sequence then None is returned else some
Posted: 4 days ago by Colin Bull
Traits, Mixins and Aspect-Oriented Programming in F#
A compositional type system built using generics and monads in F#. It is only a very limited, _toy_ project exploring traits, mixins and aspect-oriented programming.
Posted: 5 days ago by Zach Bray
Speech Stackoverflow article automatically
This snippet automatically speeches text of question,answers and comments in a Stackoverflow article. It requires HtmlAgilityPack(available from Nuget package manager).(Attention: You need reset F# interactive to stop the speech)
Posted: 7 days ago by nagat01
Popular snippets
Factory Pattern
Factory pattern in F#
57 people like this
Posted: 9 months ago by Tao LiuMinimal XML DSL
This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.
230 people like this
Posted: 1 years ago by Blake CoverettPipeline 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.
76 people like this
Posted: 1 years ago by Tomas Petricek
WPF / SilverLight Converter II
version 1 is http://fssnip.net/62. This new version support convert from any existing function to a converter function by using composition and pipeline. The convert function is to make the function signature agree to the IValueConverter interface. You can add new functions in the FunctionLibrary module and reuse the class definition to reduce the coding effort. The first sample is to show how to make the converter pipeline work, the second one is a debugger converter used to debug the data binding problem.
74 people like this
Posted: 8 months ago by Tao LiuCommand pattern for Redo-Undo II
This command redo-undo implement group the command under Do/Undo category.
58 people like this
Posted: 8 months ago by Tao LiuMonadic Memoization
Modular memoization within a pure functional setting that is implemented as a convenient computation builder.
56 people like this
Posted: 1 years ago by Nick Palladinos
Snippets by tags
View all..Snippets by authors
View all..Database contains 725 snippets out of which 573 are public.