2017-06-22 【Swift】Arrayから自作クラスのindexを取得する Swift let index = objects.index(where: { return $0.id == object.id}