2 ms·
It is, and you can pattern-match Optional in Swift, something along the lines of switch optional { case .Some(let numeral): println("Caught a \
by masklinn 12y ago
It is, and you can pattern-match Optional in Swift, something along the lines of
switch optional {
case .Some(let numeral):
println("Caught a \(numeral)")
default:
println("Nothing to catch")
}