mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Remove deprecated Cursor.flatMap
This commit is contained in:
1 parent
4489106bd6
commit
5cd66c1be8
1 file changed
-5
@@ -144,11 +144,6 @@ extension Cursor {
|
||||
return map(transform).filter { $0 != nil }.map { $0! }
|
||||
}
|
||||
|
||||
@available(*, deprecated, renamed: "compactMap")
|
||||
public func flatMap<ElementOfResult>(_ transform: @escaping (Element) throws -> ElementOfResult?) -> MapCursor<FilterCursor<MapCursor<Self, ElementOfResult?>>, ElementOfResult> {
|
||||
return compactMap(transform)
|
||||
}
|
||||
|
||||
/// Returns a cursor that skips any initial elements that satisfy
|
||||
/// `predicate`.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user