The ever charismatic Mr. Box made a lovely post about continuations in C# 2.0:
Because I have used a simpler Fibonacci implementation in couple of places, I thought I’d port it to F#.
Of course continuations are not a new idea; they have been used for a long time in ML style programming. The implementation is most like the continuations by anonymous methods, as anonymous methods work well in ML as they are very similar idea to lambdas.
Here is the source:
let fib() =
let i = ref 0 in
let j = ref...