for case (let x, 0) in points {
    print("Found a point on the x-axis at \(x)")
}

forの要素に対してパターンマッチングできる。スマートやなあ。

Taiju Muto @tai2