Recently added snippets
F# lambda (quotation) to C# Expression<Func<_>> or Expression<Action<_>>
Posted: yesterday by Tuomas Hietanen
Some generic functions that use bit manipulation. They work for all signed integer types and are faster than the standard functions min, max, abs and sign.
Posted: 3 days ago by Sami Perttu
Calculate the Flesch Reading Ease Score for a string or a file. https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests
Posted: 8 days ago by Kit Eason
Just download nssm at http://www.nssm.cc/download then install the HttpEcho.fsx script as a service: nssm.exe install HttpEcho 'C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\FsiAnyCPU.exe' --exec c:/HttpEcho.fsx Now you're done. Off course you can install any fsx script as a service this way :D
Posted: 10 days ago by thinkbeforecoding
An agent is used to act as SMTP server and receive emails. Another agent receives emails from the SMTP server and also responds to requests for all emails received. A type is exposed that wraps this behaviour in a single method to get the list of emails.
Posted: 10 days ago by Nick Lydon
Quick script using FsLab that visualizes the aggregate number of downloads of a NuGet package over time, using the HTML type provider to get the data from www.nuget.org.
Posted: 12 days 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.
102 people like this
Posted: 4 years ago by Antonio Cisternino
Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.
170 people like this
Posted: 4 years ago by Tomas Petricek
This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.
353 people like this
Posted: 4 years ago by Blake Coverett
Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.
97 people like this
Posted: 4 years ago by Tao Liu
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.
88 people like this
Posted: 4 years ago by Neil Carrier
Learn Key Principle of F# in just a few minutes with the following Sample of "World Bank Type Provider - Exploring Population Data"
370 people like this
Posted: 1 years ago by Muhammad Mugees Asif
Snippets by tagsView all..
Snippets by authorsView all..
Database contains 1787 snippets out of which 1309 are public.