It appears that struct GeneratorOf<T> {…}
is not available in in Swift 2.0. Does anyone know what, if anything, replaces this struct?
Thanks
GeneratorOf
was replaced by AnyGenerator
but you have to call a global function instead of the initializer to make one:
anyGenerator(anotherGenerator)
anyGenerator{ /* pass "next function" (as closure) */ }
In Swift 2 GeneratorOf
is replaced by class AnyGenerator<Element>
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With