Recent snippets

Popular snippets

  • Creating objects with events

    This snippet shows how to create objects with events in F#. It shows both simple event (to be used from F#) and a .NET compatible event with specific delegate type.

    85 people like this

    Posted: 15 years ago by Tomas Petricek

  • Factory Pattern

    Factory pattern in F#

    82 people like this

    Posted: 15 years ago by Tao Liu

  • 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

agent (20) lazy (20) json (16) web (29) sequence (32) silverlight (22) f# (43) kata (17) quotations (21) generic programming (17) lists (15) tutorial (17) reflection (19) async (98) design patterns (18) tryfsharp (48) learning f# (16) string (29) dsl (23) parsing (28)

View all...

Database contains 3209 snippets out of which 1719 is public.