Recent snippets

Popular snippets

  • Monadic Memoization

    Modular memoization within a pure functional setting that is implemented as a convenient computation builder.

    87 people like this

    Posted: 6 years ago by Nick Palladinos

  • 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

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    73 people like this

    Posted: 6 years ago by Robert Pickering

Snippets by tags

lists (13) dsl (22) html (14) wpf (17) lazy (18) pattern matching (12) algorithms (25) http (14) mailboxprocessor (25) sequences (47) agent (20) collections (16) array (18) learning f# (16) parsing (22) silverlight (21) json (12) tryfsharp (48) recursion (26) f# (42)

View all...

Database contains 2115 snippets out of which 1459 is public.