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: 15 years ago by Novox

  • A beautiful fixed-point finding function

    We start with an initial value and then applying f repeatedly, until the value does not change anymore.

    303 people like this

    Posted: 15 years ago by Nick Palladinos

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    106 people like this

    Posted: 14 years ago by Tao Liu

Snippets by tags

lists (15) seq (54) list (56) sequences (48) tryfsharp (48) recursion (33) math (35) sequence (32) array (22) collections (16) regex (17) algorithms (25) design patterns (18) async (98) tutorial (17) staging (18) reflection (19) lazy (20) silverlight (22) web (29)

View all...

Database contains 3208 snippets out of which 1719 is public.