Recent snippets

Popular snippets

  • Exploring Population Data

    Learn Key Principle of F# in just a few minutes with the following Sample of "World Bank Type Provider - Exploring Population Data"

    381 people like this

    Posted: 10 years ago by Muhammad Mugees Asif

  • NUnit Sugar

    Some simple functions for writing more idiomatic F# tests with NUnit.

    90 people like this

    Posted: 13 years ago by Ryan Riley

  • 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.

    89 people like this

    Posted: 12 years ago by Tao Liu

  • The Haskell const function

    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.

    119 people like this

    Posted: 13 years ago by Alex Muscar

  • Struct Tuple

    Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.

    75 people like this

    Posted: 13 years ago by fholm

  • Adapter pattern

    Invoke the methods from incompatible types

    109 people like this

    Posted: 12 years ago by Tao Liu

Snippets by tags

game (32) recursion (33) lazy (20) staging (18) tutorial (17) list (56) kata (17) mailboxprocessor (27) quotations (21) monad (23) math (35) string (27) collections (16) wpf (20) computation builder (17) fparsec (15) html (15) computation expression (15) dsl (23) parsing (28)

View all...

Database contains 3183 snippets out of which 1709 is public.