Recent snippets

Popular snippets

  • Filtering lists

    Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.

    77 people like this

    Posted: 15 years ago by Tomas Petricek

  • FSX Structure

    I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.

    127 people like this

    Posted: 15 years ago by Blake Coverett

  • 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: 15 years ago by Nick Palladinos

Snippets by tags

learning f# (16) kata (17) algorithms (25) regex (17) lazy (20) recursion (33) generic programming (17) html (16) tutorial (17) reflection (19) dsl (23) game (32) web (29) sequences (48) collections (16) monad (24) parsing (28) computation builder (17) design patterns (18) string (29)

View all...

Database contains 3208 snippets out of which 1719 is public.