The ~= operator in Swift

Sometimes, we have to check if a number is between a range, and as usual, we do something like : Check if number is between 0 and 100 included if number >=0 && number <= 100 { // TODO: } It works,…

Sourced through Scoop.it from: aymenworks.fr

See on Scoop.itiPhone and iPad Development

Advertisements