Recent snippets

Popular snippets

  • Break sequence into n-element subsequences

    I'm working on parallel computations and I thought it would be useful to break work into chunks, especially when processing each element asynchronously is too expensive. The neat thing is that this function is general even though motivation for it is specific. Another neat thing is that this is true lazy sequence unlike what you'd get if you used Seq.groupBy. There are three versions for your enjoyment.

    73 people like this

    Posted: 14 years ago by Dmitri Pavlenkov

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    90 people like this

    Posted: 14 years ago by nCdy

  • Chain of responsibility

    The following sample wants to make sure the person’s age is between 18 and 65, weight is no more than 200 and tall enough (>120).

    83 people like this

    Posted: 14 years ago by Tao Liu

Snippets by tags

agent (20) dsl (23) http (18) quotations (21) sequences (48) design patterns (18) seq (54) pattern matching (15) html (16) lazy (20) reflection (19) list (56) parsing (28) mailboxprocessor (27) array (22) fold (22) algorithms (26) sequence (32) generic programming (17) computation builder (17)

View all...

Database contains 3206 snippets out of which 1719 is public.