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

  • Read only ref

    F# implementation of RO_ref from the "Effective ML" talk.

    93 people like this

    Posted: 15 years ago by fholm

  • WPF / SilverLight Converter II

    version 1 is http://fssnip.net/62. This new version support convert from any existing function to a converter function by using composition and pipeline. The convert function is to make the function signature agree to the IValueConverter interface. You can add new functions in the FunctionLibrary module and reuse the class definition to reduce the coding effort. The first sample is to show how to make the converter pipeline work, the second one is a debugger converter used to debug the data binding problem.

    91 people like this

    Posted: 15 years ago by Tao Liu

Snippets by tags

learning f# (16) monad (24) sequences (48) staging (18) async (98) seq (54) game (32) array (22) dsl (23) json (16) lists (15) mailboxprocessor (27) pattern matching (15) generic programming (17) quotations (21) recursion (33) lazy (20) http (18) agent (20) computation expression (15)

View all...

Database contains 3209 snippets out of which 1719 is public.