Recent snippets

Popular snippets

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

  • Exploring Population Data

    Learn Key Principle of F# in just a few minutes with the following Sample of "World Bank Type Provider - Exploring Population Data"

    383 people like this

    Posted: 11 years ago by Muhammad Mugees Asif

  • Monadic Memoization

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

    91 people like this

    Posted: 14 years ago by Nick Palladinos

Snippets by tags

design patterns (18) monad (24) algorithms (26) lazy (20) math (35) reflection (19) generic programming (17) web (29) lists (15) tryfsharp (48) regex (17) collections (16) computation builder (17) agent (20) mailboxprocessor (27) async (98) recursion (33) http (18) fold (22) kata (17)

View all...

Database contains 3205 snippets out of which 1719 is public.