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.

    63 people like this

    Posted: 7 years ago by Tomas Petricek

  • Haskell function : iterate

    Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.

    203 people like this

    Posted: 7 years ago by Nick Palladinos

  • Project Euler #1

    This snippet is code that solves first Project Euler problem. It finds the sum of all the multiples of 3 or 5 below 1000. Please add other (more efficient, succinct or interesting) solutions to this snippet.

    72 people like this

    Posted: 7 years ago by Eugene Gavrin

Snippets by tags

mailboxprocessor (26) web (24) tutorial (17) recursion (27) kata (17) sequences (47) lazy (18) json (12) string (21) computation builder (14) monad (21) html (14) learning f# (16) seq (51) algorithms (25) reflection (18) wpf (19) regex (14) pattern matching (12) agent (20)

View all...

Database contains 2225 snippets out of which 1521 is public.