Array
extension Array
-
Seealso
Array.filter(_:)Declaration
Swift
public func filterKeepingFirstAndLast(_ isIncluded: (Element) throws -> Bool) rethrows -> [Element]
-
Seealso
Array.split(maxSplits:omittingEmptySubsequences:whereSeparator:)Declaration
Swift
public func splitExceptAtStartAndEnd(maxSplits: Int = .max, omittingEmptySubsequences: Bool = true, whereSeparator isSeparator: (Element) throws -> Bool) rethrows -> [ArraySlice<Element>]