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

  • 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: 15 years ago by Neil Carrier

  • 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: 15 years ago by Dmitry Soshnikov

Snippets by tags

array (22) collections (16) regex (17) learning f# (16) parsing (28) math (35) fold (22) staging (18) game (32) http (18) reflection (19) recursion (33) agent (20) computation expression (15) mailboxprocessor (27) async (98) computation builder (17) seq (54) lists (15) tutorial (17)

View all...

Database contains 3212 snippets out of which 1719 is public.