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

  • Struct Tuple

    Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.

    77 people like this

    Posted: 15 years ago by fholm

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    106 people like this

    Posted: 15 years ago by Tao Liu

Snippets by tags

pattern matching (15) sequence (32) f# (43) computation builder (17) string (29) design patterns (18) algorithms (25) agent (20) dsl (23) web (29) monad (24) math (35) game (32) async (98) lists (15) recursion (33) staging (18) parsing (28) lazy (20) seq (54)

View all...

Database contains 3212 snippets out of which 1719 is public.