You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import SwifterSwift
switch "10101010" {
case "101":
print("101") // match this case.
case "1001":
print("1001")
case "10101010":
print("10101010")
default:
break;
}
The text was updated successfully, but these errors were encountered:
Overload String
~=
is a nice idea.Unfortunately, Switch use this func for matching.
As an example accroding to #1109 .
The text was updated successfully, but these errors were encountered: