Recent snippets

Popular snippets

  • Hello world (F#)

    Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.

    186 people like this

    Posted: 15 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.

    127 people like this

    Posted: 15 years ago by Blake Coverett

  • 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

Snippets by tags

json (16) web (29) design patterns (18) silverlight (22) seq (54) lists (15) kata (17) quotations (21) mailboxprocessor (27) array (22) http (18) computation builder (17) recursion (33) tutorial (17) wpf (20) reflection (19) math (35) algorithms (25) computation expression (15) fold (22)

View all...

Database contains 3208 snippets out of which 1719 is public.