“Listing 25.10 Ranges of comparable types
…
let cLessThanEqualD = (c <= d) true
let cGreaterThanD = (c > d) false
let cGreaterThanEqualD = (c >= d) false
let pointRange = c…<d {{x 2, y 6, nil},…
pointRange.contains(a) true
pointRange.contains(Point(x: -1, y: -1)) false”
I believe I’ve carefully reproduced the statements in the playground. But with Swift 5.7, pointRange.contains(a) evaluates to false when the code runs.
Has the playground been tested with Swift 5.7?