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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s