Files
2020-07-16 21:13:44 +09:00

13 lines
209 B
Swift

//
// Collection+.swift
// LifeGameApp
//
// Created by Yusuke Hosonuma on 2020/07/16.
//
extension Collection {
func withIndex() -> [(Int, Element)] {
Array(zip(0..<self.count, self))
}
}