Recent snippets

Popular snippets

  • Split a list

    Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.

    84 people like this

    Posted: 15 years ago by Dmitri Pavlenkov

  • 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

  • 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.

    186 people like this

    Posted: 15 years ago by Tomas Petricek

Snippets by tags

html (16) pattern matching (15) web (29) fold (22) async (98) recursion (33) silverlight (22) staging (18) parsing (28) monad (24) tryfsharp (48) sequence (32) http (18) array (22) json (16) math (35) reflection (19) agent (20) string (29) mailboxprocessor (27)

View all...

Database contains 3208 snippets out of which 1719 is public.