Drop Cursor.lazy

This commit is contained in:
Gwendal Roué committed 2016-11-29 06:35:09 +01:00
1 parent 0c4fb36827
commit bb1f8aab24
1 file changed
-24
-24
View File
@@ -69,11 +69,6 @@ extension Cursor {
}
}
/// TODO
public var lazy: CursorLazySequence<Self> {
return CursorLazySequence(self)
}
/// TODO
public func map<T>(_ transform: @escaping (Element) throws -> T) -> MapCursor<Self, T> {
return MapCursor(self, transform)
@@ -89,25 +84,6 @@ extension Cursor {
}
}
/// TODO
public final class CursorLazySequence<Base : Cursor> : LazySequenceProtocol, IteratorProtocol {
init(_ base: Base) {
self.base = base
}
/// TODO
public func makeIterator() -> CursorLazySequence<Base> {
return self
}
/// TODO
public func next() -> Base.Element? {
return try! base.next()
}
private let base: Base
}
/// TODO
public final class EnumeratedCursor<Base : Cursor> : Cursor {
init(_ base: Base) {