Recent snippets

Popular snippets

  • Read only ref

    F# implementation of RO_ref from the "Effective ML" talk.

    92 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: 15 years ago by Dmitri Pavlenkov

  • Hello world (F#)

    Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.

    185 people like this

    Posted: 15 years ago by Tomas Petricek

Snippets by tags

list (56) quotations (21) regex (17) http (18) seq (54) fold (22) monad (24) generic programming (17) array (22) f# (43) string (29) mailboxprocessor (27) lists (15) tryfsharp (48) dsl (23) web (29) html (16) learning f# (16) sequence (32) parsing (28)

View all...

Database contains 3208 snippets out of which 1719 is public.