Recent snippets

Popular snippets

  • Strategy pattern

    Strategy pattern in F#

    83 people like this

    Posted: 14 years ago by Tao Liu

  • 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

    89 people like this

    Posted: 14 years ago by fholm

  • Composing a list of functions

    Composition of functions in F# is easily achieved by using the >> operator. You can also chain an arbitary amount of functions (represented as a list or sequence) together by folding the list/seq with >>. [More formally: the set of endomorphisms 'a -> 'a forms a monoid with the binary, associative operator ">>" (or "<<") and the neutral element "id".]

    87 people like this

    Posted: 14 years ago by Novox

Snippets by tags

math (35) generic programming (17) string (29) fold (22) pattern matching (15) list (56) collections (16) mailboxprocessor (27) design patterns (18) array (22) monad (24) staging (18) async (98) web (29) learning f# (16) kata (17) html (16) sequences (48) seq (54) regex (17)

View all...

Database contains 3203 snippets out of which 1717 is public.