Recent snippets

Popular snippets

  • Monadic Memoization

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

    92 people like this

    Posted: 15 years ago by Nick Palladinos

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    90 people like this

    Posted: 15 years ago by nCdy

  • 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

  • Factory Pattern

    Factory pattern in F#

    82 people like this

    Posted: 15 years ago by Tao Liu

  • Split a list

    Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.

    84 people like this

    Posted: 15 years ago by Dmitri Pavlenkov

  • 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

Snippets by tags

string (29) tutorial (17) monad (24) computation expression (15) math (35) learning f# (16) quotations (21) regex (17) agent (20) kata (17) lists (15) json (16) array (22) seq (54) html (16) pattern matching (15) collections (16) wpf (20) f# (43) dsl (23)

View all...

Database contains 3209 snippets out of which 1719 is public.