SyntaxFix
Write A Post
Hire A Developer
Questions
Swift 4 with saving array types
extension Array { func take(_ elementsCount: Int) -> [Element] { let min = Swift.min(elementsCount, count) return Array(self[0..<min]) } }