The ~= operator
Swift
swift
var index = 1
var tribes = ["BOWSER", "WM", "Ragnarök"]
// You can replace this:
// if index >= 0 && index < tribes.count {
// print(tribes[index])
// }
// With this
if 0..<tribes.count ~= index {
print(tribes[index])
}