Recently added snippets
This is just the ML code from http://jozefg.bitbucket.org/posts/2015-02-28-type-inference.html ported to F#.
Posted: yesterday by Rick Minerich
Normalisation of "F# quotations" by evaluation.
Posted: 2 days ago by Nick Palladinos
Formatting a Timespan to something fully descriptive and user friendly.
Posted: 5 days ago by Gauthier Segay
Overrides the standard Web API ApiControllerActionInvoker with one that works with controller actions return F# Async<'T> results.
Posted: 5 days ago by Ryan Riley
Counting 1-bits in a DWORD (int32) using the 'divide and conquer' strategy
Posted: 5 days ago by Fabio Galuppo
Turn a project based nuspec into a project type paket template (see http://fsprojects.github.io/Paket/template-files.html )
Posted: 8 days ago by mavnn
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: 4 years ago by Antonio Cisternino
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.
83 people like this
Posted: 3 years ago by Tao Liu
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.
81 people like this
Posted: 3 years ago by Wolfgang Meyer
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.
182 people like this
Posted: 4 years ago by Nick Palladinos
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: 4 years ago by Neil Carrier
This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.
336 people like this
Posted: 4 years ago by Blake Coverett
Snippets by tagsView all..
Snippets by authorsView all..
Database contains 1578 snippets out of which 1169 are public.