I already know that there's a built-in operator ..< called half-open range. But how can I obtain a "both-open" range, meaning a range that doesn't contain either terminal?
To clarify using interval notation, if a...b is equivalent to [a, b] and a..<b is equivalent to [a, b), what is the Swift equivalent of (a, b)?
Ideally, I would prefer to do this using native Swift functionality. But if this is not possible, could I extend Range to achieve this?
I tried in some ways, but I still don't know how.