Recent snippets

Popular snippets

  • Adapter pattern

    Invoke the methods from incompatible types

    111 people like this

    Posted: 14 years ago by Tao Liu

  • Association list lookup

    While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.

    68 people like this

    Posted: 15 years ago by Alex Muscar

  • 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: 15 years ago by Dmitri Pavlenkov

Snippets by tags

computation expression (15) reflection (19) kata (17) math (35) sequence (32) string (29) lazy (20) collections (16) html (16) generic programming (17) web (29) json (16) staging (18) array (22) pattern matching (15) wpf (20) sequences (48) regex (17) agent (20) lists (15)

View all...

Database contains 3208 snippets out of which 1719 is public.