Recent snippets

Popular snippets

  • 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

  • Monadic Memoization

    Modular memoization within a pure functional setting that is implemented as a convenient computation builder.

    91 people like this

    Posted: 14 years ago by Nick Palladinos

  • Struct Tuple

    Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.

    77 people like this

    Posted: 14 years ago by fholm

Snippets by tags

regex (17) mailboxprocessor (27) parsing (28) fold (22) dsl (23) sequence (32) collections (16) sequences (48) wpf (20) kata (17) agent (20) async (98) string (29) quotations (21) web (29) computation builder (17) learning f# (16) math (35) http (18) reflection (19)

View all...

Database contains 3206 snippets out of which 1719 is public.