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 thisPosted: 14 years ago by Dmitri Pavlenkov
LanguagePrimitives help create inline functions
42 people like thisPosted: 13 years ago by Dmitri Pavlenkov
You never know when you might need this.
7 people like thisPosted: 13 years ago by Dmitri Pavlenkov
Cached fib sequence
16 people like thisPosted: 13 years ago by Dmitri Pavlenkov
While reading Tomas Petricek's master thesis, came across FIX operator implementation. Decided to experiment with various implementations of factorial.
16 people like thisPosted: 13 years ago by Dmitri Pavlenkov
Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.
83 people like thisPosted: 13 years ago by Dmitri Pavlenkov