Recent snippets

  • Get Bitcoin wallet

    76a9142220867b1e79c403fafe339a809a65ed01cb697988ac

    0 people like this

    Posted: 3 days ago by The streets

  • Simple F# Expression to Java compiler

    Compiles simple F# quoted expressions (literals, values, operators, ifs and for loops) to Java code.

    1 people like this

    Posted: 24 days ago by Phillip Trelford

  • Distance sort

    Sort collection of items based on criteria of closest distance between consecutive items. The resulting collection first element is one of two farthest items, the end element is the second of the farthest pair. For the collection of `n` items the distance function is called n*(n-1) /2 times. The distance for pair of items is assumed to not depend on items order.

    2 people like this

    Posted: 25 days ago by Konstantin Sh

Popular snippets

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

    89 people like this

    Posted: 12 years ago by Neil Carrier

  • Top-Down-Operator-Precedence Parser

    F# implementation of a generic Top-Down-Operator-Precedence Parser as described in this paper http://portal.acm.org/citation.cfm?id=512931 Example starts at line ~300

    87 people like this

    Posted: 12 years ago by fholm

  • Factory Pattern

    Factory pattern in F#

    78 people like this

    Posted: 11 years ago by Tao Liu

  • Strategy pattern

    Strategy pattern in F#

    80 people like this

    Posted: 11 years ago by Tao Liu

  • Read only ref

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

    86 people like this

    Posted: 12 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.

    122 people like this

    Posted: 12 years ago by Blake Coverett

Snippets by tags

f# (43) lists (14) agent (20) lazy (20) fold (22) design patterns (18) reflection (19) computation builder (16) sequence (32) quotations (21) collections (16) math (35) string (27) html (15) sequences (48) web (29) game (32) fparsec (15) pattern matching (15) algorithms (25)

View all...

Database contains 3138 snippets out of which 1704 is public.