Recent snippets

Popular snippets

  • 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

  • Factory Pattern

    Factory pattern in F#

    82 people like this

    Posted: 15 years ago by Tao Liu

  • 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

Snippets by tags

string (29) tutorial (17) monad (24) collections (16) kata (17) html (16) staging (18) dsl (23) parsing (28) array (22) lists (15) design patterns (18) regex (17) async (98) generic programming (17) mailboxprocessor (27) tryfsharp (48) wpf (20) sequences (48) fold (22)

View all...

Database contains 3209 snippets out of which 1719 is public.