Recent snippets

Popular snippets

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

    75 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

  • Association list lookup

    While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.

    68 people like this

    Posted: 15 years ago by Alex Muscar

Snippets by tags

agent (20) seq (54) kata (17) reflection (19) json (16) quotations (21) regex (17) algorithms (25) parsing (28) string (29) learning f# (16) wpf (20) array (22) computation expression (15) staging (18) game (32) tryfsharp (48) dsl (23) lazy (20) tutorial (17)

View all...

Database contains 3209 snippets out of which 1719 is public.