Recent snippets

Popular snippets

  • Wicked way to solve quadratic equation using list of operators

    This is to demonstrate that: (1) there are many ways to solve the same problems; (2) operators can be grouped together into data structures and act as data; (3) you can have fun in F# in many ways.

    57 people like this

    Posted: 14 years ago by Dmitry Soshnikov

  • Continuation-Passing Mnemonics

    Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.

    100 people like this

    Posted: 14 years ago by Neil Carrier

  • 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: 14 years ago by Blake Coverett

Snippets by tags

lists (15) kata (17) json (16) html (16) collections (16) tutorial (17) computation expression (15) parsing (28) sequences (48) seq (54) wpf (20) sequence (32) agent (20) list (56) generic programming (17) computation builder (17) web (29) algorithms (26) reflection (19) dsl (23)

View all...

Database contains 3203 snippets out of which 1717 is public.