Recent snippets

Popular snippets

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    75 people like this

    Posted: 15 years ago by Robert Pickering

  • 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

  • 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

Snippets by tags

wpf (20) tutorial (17) math (35) staging (18) mailboxprocessor (27) lists (15) silverlight (22) tryfsharp (48) learning f# (16) agent (20) dsl (23) list (56) parsing (28) pattern matching (15) json (16) design patterns (18) computation builder (17) quotations (21) sequence (32) recursion (33)

View all...

Database contains 3209 snippets out of which 1719 is public.