Recent snippets

Popular snippets

  • Continuation-Passing Mnemonics

    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.

    89 people like this

    Posted: 10 years ago by Neil Carrier

  • FSX Structure

    I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.

    120 people like this

    Posted: 10 years ago by Blake Coverett

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

    376 people like this

    Posted: 7 years ago by Muhammad Mugees Asif

  • Association list lookup

    While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.

    68 people like this

    Posted: 10 years ago by Alex Muscar

  • FSX Structure

    I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.

    120 people like this

    Posted: 10 years ago by Blake Coverett

  • ObservableObject

    The ObservableObject type implements the INotifyPropertyChanged interface used in WPF and Silverlight to notify on changes to properties that are bound to a control. Specify property names type safely using F# Quotations, i.e. <@ this.PropertyName @> when invoking the NotifyPropertyChanged method. If you are following the MVVM pattern then your View Model class can inherit from the ObservableObject type.

    59 people like this

    Posted: 10 years ago by Phillip Trelford

Snippets by tags

collections (16) learning f# (16) agent (20) monad (22) string (25) regex (15) json (14) lazy (20) dsl (23) async (96) fparsec (15) reflection (19) list (55) pattern matching (14) tutorial (17) wpf (20) mailboxprocessor (27) silverlight (22) parsing (26) seq (54)

View all...

Database contains 2713 snippets out of which 1661 is public.