Recent snippets

Popular snippets

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

    83 people like this

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

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    90 people like this

    Posted: 14 years ago by nCdy

Snippets by tags

web (29) game (32) monad (24) seq (54) algorithms (26) silverlight (22) f# (43) list (56) json (16) sequences (48) array (22) parsing (28) computation builder (17) fold (22) mailboxprocessor (27) wpf (20) lazy (20) learning f# (16) sequence (32) agent (20)

View all...

Database contains 3206 snippets out of which 1719 is public.