Recent snippets

Popular snippets

  • 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

  • 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

  • Adapter pattern

    Invoke the methods from incompatible types

    111 people like this

    Posted: 14 years ago by Tao Liu

Snippets by tags

collections (16) fold (22) generic programming (17) reflection (19) sequences (48) agent (20) seq (54) design patterns (18) lazy (20) sequence (32) recursion (33) string (29) array (22) staging (18) tryfsharp (48) json (16) http (18) tutorial (17) computation builder (17) regex (17)

View all...

Database contains 3208 snippets out of which 1719 is public.