2015-08-27 24 views

Odpowiedz

6

GeneratorOf was replaced przez AnyGenerator but masz do call a function global instead of tej initializer do uczynić one:

anyGenerator(anotherGenerator) 
anyGenerator{ /* pass "next function" (as closure) */ } 
+0

Że Było. Nie zdawałem sobie sprawy, że istnieje dla niego globalna funkcja. Dzięki! – Rob

4

W Swift 2 GeneratorOf zastępuje class AnyGenerator<Element>.