Categories
How to set interval in switch in Swift?
How to set interval in Switch (-infinite ; 0 ) [0 ; 1] (10 ; +infinite)
Answer the question
In order to leave comments, you need to log in
switch doubleValue { case let x where x < 0: println(x) case 0...1: println("0...1") case let x where x > 10: println(x) default: println("default") }
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question