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

  • get the list of LAN Sql servers

    get the list of ethernet sql servers

    90 people like this

    Posted: 15 years ago by nCdy

  • FSX Structure

    I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.

    127 people like this

    Posted: 15 years ago by Blake Coverett

Snippets by tags

game (32) algorithms (25) reflection (19) dsl (23) quotations (21) seq (54) tryfsharp (48) string (29) learning f# (16) fold (22) kata (17) staging (18) recursion (33) lazy (20) json (16) parsing (28) sequences (48) async (98) html (16) generic programming (17)

View all...

Database contains 3209 snippets out of which 1719 is public.