Recent snippets

Popular snippets

  • Filtering lists

    Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.

    77 people like this

    Posted: 15 years ago by Tomas Petricek

  • 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

  • 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

Snippets by tags

tutorial (17) generic programming (17) array (22) http (18) wpf (20) game (32) monad (24) computation expression (15) learning f# (16) fold (22) design patterns (18) quotations (21) lazy (20) computation builder (17) web (29) list (56) silverlight (22) collections (16) parsing (28) mailboxprocessor (27)

View all...

Database contains 3209 snippets out of which 1719 is public.