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.

    75 people like this

    Posted: 15 years ago by Tomas Petricek

  • Implementing active objects with a MailboxProcessor

    Mailbox processors can easily be used to implement active objects. This example shows how to do that with a reusable wrapper type and minimal boilerplate code in the actual class definitions. Supports both asynchronous calls and synchronous calls. For the latter case, exceptions are automatically propagated back to the caller.

    92 people like this

    Posted: 15 years ago by Wolfgang Meyer

  • 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: 12 years ago by Muhammad Mugees Asif

Snippets by tags

html (16) math (35) agent (20) design patterns (18) mailboxprocessor (27) seq (54) http (18) async (98) computation expression (15) string (29) dsl (23) list (56) staging (18) learning f# (16) silverlight (22) wpf (20) lists (15) algorithms (25) sequence (32) parsing (28)

View all...

Database contains 3212 snippets out of which 1719 is public.