Presenting Fibers as Ranges
Learn about the use of “std.concurrency.Generators” for presenting fibers as ranges.
We'll cover the following...
std.concurrency.Generator
Although we have achieved generating the Fibonacci series with a fiber, this implementation has the following shortcomings:
-
The solution does not provide a range interface, making it incompatible with existing range algorithms.
-
Presenting the elements by mutating a
ref
...