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

  • 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

Snippets by tags

sequences (48) async (98) sequence (32) string (29) computation expression (15) web (29) html (16) lists (15) dsl (23) tutorial (17) algorithms (25) monad (24) quotations (21) wpf (20) json (16) silverlight (22) reflection (19) learning f# (16) game (32) staging (18)

View all...

Database contains 3212 snippets out of which 1719 is public.