Recent snippets

Popular snippets

  • Factory Pattern

    Factory pattern in F#

    82 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

  • Asynchronous sequences

    An asynchronous sequence is similar to the seq type, but the elements of the sequence are generated asynchronously without blocking the caller as in Async. This snippet declares asynchronous sequence and uses it to compare two files in 1k blocks.

    109 people like this

    Posted: 15 years ago by Tomas Petricek

Snippets by tags

fold (22) tutorial (17) staging (18) quotations (21) async (98) design patterns (18) learning f# (16) sequence (32) lazy (20) tryfsharp (48) silverlight (22) seq (54) parsing (28) computation builder (17) kata (17) generic programming (17) pattern matching (15) html (16) agent (20) sequences (48)

View all...

Database contains 3208 snippets out of which 1719 is public.