mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Drop Cursor.lazy
This commit is contained in:
1 parent
0c4fb36827
commit
bb1f8aab24
1 file changed
-24
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user