0
what's the use of "where" in switch conditional statements in swift programming language?
2 odpowiedzi
+ 2
This should help explain better.
https://code.sololearn.com/c9ekQZx1Te63/?ref=app
0
Where clause in swift is used to add conditions ,you can even add multiple where clause using (&& ).
Ex-case (let name,let version) where (version < 0 && name.count < 0)