Day 16
This commit is contained in:
parent
624a7f4326
commit
c815aeb942
3 changed files with 215 additions and 0 deletions
common
|
@ -31,3 +31,9 @@ extension Sequence {
|
|||
return self
|
||||
}
|
||||
}
|
||||
|
||||
extension Collection where Element: Collection {
|
||||
func flatten() -> [Element.Element] {
|
||||
flatMap { $0 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue