In Swift, is there a clever way of using the higher order methods on Array to return the 5 first objects? The obj-c way of doing it was saving an index, and for-loop throug
Plain & Simple
extension Array { func first(elementCount: Int) -> Array { let min = Swift.min(elementCount, count) return Array(self[0..