Recent snippets

Popular snippets

  • Adapter pattern

    Invoke the methods from incompatible types

    111 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

  • 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

lists (15) math (35) reflection (19) quotations (21) string (29) web (29) seq (54) kata (17) recursion (33) game (32) list (56) json (16) f# (43) monad (24) generic programming (17) http (18) tryfsharp (48) wpf (20) sequence (32) computation expression (15)

View all...

Database contains 3209 snippets out of which 1719 is public.