Slide 11
Slide 11 text
Copyright © 2026 treastrain / Tanaka RyogaɹAll rights reserved.
stride(from:through:by:)
11
ඌΛؚΉ
let hours = [0, 3, 6, 9, 12, 15, 18, 21]
// 0, 3, 6, 9, 12, 15, 18, 21
let hours = stride(from: 0, to: 24, by: 3)
// 0, 3, 6, 9, 12, 15, 18, 21, 24
let hours = stride(from: 0, through: 24, by: 3)