Recent snippets

Popular snippets

  • Strategy pattern

    Strategy pattern in F#

    83 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: 14 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: 14 years ago by Dmitri Pavlenkov

Snippets by tags

sequence (32) list (56) kata (17) game (32) async (98) http (18) reflection (19) tryfsharp (48) collections (16) monad (24) learning f# (16) string (29) wpf (20) lists (15) f# (43) staging (18) array (22) computation builder (17) agent (20) regex (17)

View all...

Database contains 3206 snippets out of which 1719 is public.