Recently added snippets
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.
100 people like this
Posted: 4 years ago by Alex Muscar
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
We start with an initial value and then applying f repeatedly, until the value does not change anymore.
264 people like this
Posted: 4 years ago by Nick Palladinos
Get Stock Quote Data and Historical Stock Prices from Yahoo Finance.
219 people like this
Posted: 4 years ago by Tuomas Hietanen
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.
82 people like this
Posted: 4 years ago by Tomas Petricek
F# implementation of RO_ref from the "Effective ML" talk.
79 people like this
Posted: 4 years ago by fholm
Snippets by tagsView all..
Snippets by authorsView all..
Database contains 1594 snippets out of which 1179 are public.