Recent snippets

Popular snippets

  • Read only ref

    F# implementation of RO_ref from the "Effective ML" talk.

    82 people like this

    Posted: 8 years ago by fholm

  • Projecting lists

    Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.

    65 people like this

    Posted: 8 years ago by Tomas Petricek

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

    117 people like this

    Posted: 8 years ago by Blake Coverett

Snippets by tags

pattern matching (13) tutorial (17) recursion (29) design patterns (18) array (20) wpf (20) lists (13) silverlight (22) regex (15) web (24) math (32) parsing (25) json (14) collections (16) http (15) seq (54) monad (22) list (51) tryfsharp (48) staging (18)

View all...

Database contains 2343 snippets out of which 1592 is public.