This is an interesting note. I found this post:
So in your example you could do the optional binding as if let a = [a,b].first(where: {$0 == "a" }) as? String {
to get a non-optional String
out of it.
This is an interesting note. I found this post:
So in your example you could do the optional binding as if let a = [a,b].first(where: {$0 == "a" }) as? String {
to get a non-optional String
out of it.