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

  • Read only ref

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

    81 people like this

    Posted: 6 years ago by fholm

  • The Haskell const function

    The const function is simple, but you can use it to make your code more legible. In this example we convert a unary function to a function of arity 2 (that ignores the second argument). Also by using the flip function from Haskell (which is equally easy to define) you can ignore the first argument.

    119 people like this

    Posted: 6 years ago by Alex Muscar

Snippets by tags

html (14) array (18) math (32) wpf (18) string (18) reflection (18) tryfsharp (48) mailboxprocessor (25) lists (13) web (23) game (30) quotations (17) http (14) staging (18) tutorial (16) f# (42) agent (20) lazy (18) parsing (22) list (49)

View all...

Database contains 2149 snippets out of which 1482 is public.