Recent snippets

Popular snippets

  • Association list lookup

    While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.

    68 people like this

    Posted: 15 years ago by Alex Muscar

  • Dynamic operator using Reflection

    Demonstrates how to implement the dynamic operator (?) using .NET Reflection. The implementation supports calling constructors, propreties and methods using simple overload resolution (based on parameter count). It handles instance as well as static members.

    73 people like this

    Posted: 14 years ago by Tomas Petricek

  • 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.

    124 people like this

    Posted: 15 years ago by Blake Coverett

Snippets by tags

reflection (19) kata (17) wpf (20) regex (17) monad (24) sequence (32) tutorial (17) array (22) web (29) pattern matching (15) list (56) dsl (23) f# (43) silverlight (22) learning f# (16) sequences (48) game (32) algorithms (26) mailboxprocessor (27) lists (15)

View all...

Database contains 3207 snippets out of which 1719 is public.