Recent snippets

Popular snippets

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

    122 people like this

    Posted: 13 years ago by Blake Coverett

  • 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

    87 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

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

    122 people like this

    Posted: 13 years ago by Blake Coverett

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    75 people like this

    Posted: 13 years ago by Robert Pickering

  • 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: 13 years ago by Alex Muscar

Snippets by tags

tryfsharp (48) game (32) list (56) web (29) staging (18) sequence (32) design patterns (18) pattern matching (15) agent (20) parsing (28) algorithms (25) json (15) array (22) string (27) monad (23) async (98) wpf (20) collections (16) recursion (33) http (18)

View all...

Database contains 3181 snippets out of which 1708 is public.