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.

    127 people like this

    Posted: 15 years ago by Blake Coverett

  • Split a list

    Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.

    84 people like this

    Posted: 15 years ago by Dmitri Pavlenkov

  • Minimal XML DSL

    This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.

    374 people like this

    Posted: 15 years ago by Blake Coverett

Snippets by tags

array (22) game (32) web (29) tutorial (17) html (16) tryfsharp (48) mailboxprocessor (27) lazy (20) learning f# (16) sequences (48) f# (43) fold (22) computation expression (15) seq (54) silverlight (22) collections (16) regex (17) computation builder (17) pattern matching (15) kata (17)

View all...

Database contains 3208 snippets out of which 1719 is public.