This commit is contained in:
Sven Weidauer 2020-12-16 07:51:50 +01:00
parent 624a7f4326
commit c815aeb942
3 changed files with 215 additions and 0 deletions

View file

@ -31,3 +31,9 @@ extension Sequence {
return self
}
}
extension Collection where Element: Collection {
func flatten() -> [Element.Element] {
flatMap { $0 }
}
}