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.

    124 people like this

    Posted: 15 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: 15 years ago by Robert Pickering

  • 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

    89 people like this

    Posted: 14 years ago by fholm

Snippets by tags

fold (22) game (32) string (29) design patterns (18) list (56) silverlight (22) seq (54) mailboxprocessor (27) computation expression (15) generic programming (17) algorithms (26) array (22) monad (24) lazy (20) quotations (21) sequence (32) math (35) http (18) reflection (19) tryfsharp (48)

View all...

Database contains 3208 snippets out of which 1719 is public.