Recent snippets

Popular snippets

  • Chain of responsibility II

    Unlike the previous chain of responsibility, this version use the pipeline to chain responsibilities.

    106 people like this

    Posted: 14 years ago by Tao Liu

  • Struct Tuple

    Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.

    77 people like this

    Posted: 15 years ago by fholm

  • 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

learning f# (16) design patterns (18) sequence (32) dsl (23) http (18) seq (54) game (32) async (98) regex (17) array (22) silverlight (22) mailboxprocessor (27) lazy (20) math (35) computation builder (17) algorithms (25) computation expression (15) generic programming (17) tutorial (17) sequences (48)

View all...

Database contains 3209 snippets out of which 1719 is public.