Recent snippets

Popular snippets

  • 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

  • Creating objects with events

    This snippet shows how to create objects with events in F#. It shows both simple event (to be used from F#) and a .NET compatible event with specific delegate type.

    85 people like this

    Posted: 15 years ago by Tomas Petricek

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    90 people like this

    Posted: 15 years ago by nCdy

Snippets by tags

silverlight (22) list (56) algorithms (25) generic programming (17) mailboxprocessor (27) tutorial (17) math (35) quotations (21) tryfsharp (48) computation expression (15) design patterns (18) kata (17) learning f# (16) monad (24) computation builder (17) fold (22) json (16) reflection (19) wpf (20) sequence (32)

View all...

Database contains 3208 snippets out of which 1719 is public.