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

  • Hello world (F#)

    Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.

    185 people like this

    Posted: 15 years ago by Tomas Petricek

  • Read only ref

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

    92 people like this

    Posted: 14 years ago by fholm

Snippets by tags

monad (24) lists (15) f# (43) parsing (28) agent (20) game (32) array (22) mailboxprocessor (27) regex (17) reflection (19) silverlight (22) tryfsharp (48) computation builder (17) http (18) generic programming (17) list (56) collections (16) recursion (33) learning f# (16) web (29)

View all...

Database contains 3208 snippets out of which 1719 is public.