Recent snippets

Popular snippets

  • 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: 10 years ago by Alex Muscar

  • Doughnut chart using chart controls

    The snippet shows how to use Microsoft Chart Controls (available in .NET 4.0 and for .NET 3.5) to draw a Doughnut chart. The sample shows proportion of seats taken by parties in UK elections.

    86 people like this

    Posted: 10 years ago by Tomas Petricek

  • 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: 10 years ago by Tomas Petricek

Snippets by tags

pattern matching (14) seq (54) silverlight (22) sequence (32) kata (17) json (14) staging (18) array (22) parsing (26) learning f# (16) html (15) algorithms (25) reflection (19) web (29) sequences (48) list (55) game (32) f# (44) wpf (20) generic programming (17)

View all...

Database contains 2842 snippets out of which 1665 is public.