Recent snippets

Popular snippets

  • Adapter pattern

    Invoke the methods from incompatible types

    110 people like this

    Posted: 14 years ago by Tao Liu

  • 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

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    75 people like this

    Posted: 15 years ago by Robert Pickering

Snippets by tags

quotations (21) monad (24) design patterns (18) staging (18) seq (54) parsing (28) html (16) agent (20) list (56) computation expression (15) computation builder (17) web (29) fold (22) math (35) http (18) sequence (32) async (98) tryfsharp (48) kata (17) algorithms (26)

View all...

Database contains 3208 snippets out of which 1719 is public.