F# Snippets

Recently added snippets

Popular snippets

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

    81 people like this
    Posted: 3 years ago by Tomas Petricek

  • Load XAML

    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: 3 years ago by Antonio Cisternino

  • Top-Down-Operator-Precedence Parser

    F# implementation of a generic Top-Down-Operator-Precedence Parser as described in this paper http://portal.acm.org/citation.cfm?id=512931 Example starts at line ~300

    80 people like this
    Posted: 3 years ago by fholm

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

    99 people like this
    Posted: 3 years ago by Alex Muscar

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

    367 people like this
    Posted: 9 months ago by Muhammad Mugees Asif

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    77 people like this
    Posted: 3 years ago by nCdy

Snippets by tags

DSL (21) sequences (43) collections (13) SilverLight (21) math (28) MailboxProcessor (21) lazy (17) F# (33) async (68) Design Patterns (18) web (15) agent (17) Seq (42) Kata (16) parsing (21) tutorial (15) computation builder (13) lists (13) Learning F# (15) Algorithms (21) reflection (18) monad (18) list (40) string (15) Sequence (28) fold (13) game (22) WPF (15) recursion (24) tryfsharp (41)
View all..

Snippets by authors

View all..

Database contains 1471 snippets out of which 1106 are public.