Avatar
omochimetaru 4/26/2018 5:43 AM
@swift-4.2.4 struct A { var strings: AnySequence<String> { return AnySequence { () -> AnyIterator<String> in var buf: [String] = ["1", "2"] return AnyIterator { if let first = buf.popFirst() { return first } return nil } } } }