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

  • Creating objects with events

    This snippet shows how to create objects with events in F#. It shows both simple event (to be used from F#) and a .NET compatible event with specific delegate type.

    85 people like this

    Posted: 15 years ago by Tomas Petricek

  • 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

math (35) reflection (19) string (29) staging (18) quotations (21) algorithms (25) f# (43) wpf (20) learning f# (16) web (29) regex (17) lists (15) agent (20) computation builder (17) generic programming (17) design patterns (18) tryfsharp (48) array (22) monad (24) pattern matching (15)

View all...

Database contains 3208 snippets out of which 1719 is public.