0001 /// :nodoc: 0002 public struct SpecEnumerateGen<Base
Enumerate.swift:16 public func generate() -> SpecEnumerateGen<Base> {Enumerate.swift:17 return SpecEnumerateGen(base: col, i: col.startIndex): CollectionType> : GeneratorType { 0003 0004 private let base
Enumerate.swift:4 private let base: BaseEnumerate.swift:5 private var i: Base.IndexEnumerate.swift:7 public mutating func next() -> (Base.Index, Base.Generator.Element)? {Enumerate.swift:7 public mutating func next() -> (Base.Index, Base.Generator.Element)? {: Base 0005 private var i
Enumerate.swift:8 return i == base.endIndex ? nil : (i, base[i++])Enumerate.swift:8 return i == base.endIndex ? nil : (i, base[i++]): Base.Index 0006 /// :nodoc: 0007 public mutating func next() -> (Base.Index, Base.Generator.Element)? { 0008 return i == base.endIndex ? nil : (i, base[i++]) 0009 } 0010 } 0011 /// :nodoc: 0012 public struct SpecEnumerateSeq
Enumerate.swift:8 return i == base.endIndex ? nil : (i, base[i++])Enumerate.swift:8 return i == base.endIndex ? nil : (i, base[i++])Enumerate.swift:8 return i == base.endIndex ? nil : (i, base[i++])<Base
Enumerate.swift:28 func specEnumerate() -> SpecEnumerateSeq<Self> {Enumerate.swift:29 return SpecEnumerateSeq(col: self): CollectionType> : SequenceType { 0013 0014 private let col
Enumerate.swift:14 private let col: BaseEnumerate.swift:16 public func generate() -> SpecEnumerateGen<Base> {: Base 0015 /// :nodoc: 0016 public func generate() -> SpecEnumerateGen<Base> { 0017 return SpecEnumerateGen(base: col, i: col.startIndex) 0018 } 0019 } 0020 0021 public extension CollectionType { 0022 0023 /// Returns a lazy generator of tuples `(i, e)` where `i` is successive indices of self, 0024 /// and `e` is the respective elements. Effectively the same as `.enumerate()`, but the 0025 /// indices returned are `Self.Index`s, rather than `Int`s 0026 /// - SeeAlso: `enumerate()` 0027 @warn_unused_result 0028 func specEnumerate() -> SpecEnumerateSeq<Self> { 0029 return SpecEnumerateSeq(col: self) 0030 } 0031 } 0032 0033 0034
Enumerate.swift:17 return SpecEnumerateGen(base: col, i: col.startIndex)Enumerate.swift:17 return SpecEnumerateGen(base: col, i: col.startIndex)