Hacker News new | past | comments | ask | show | jobs | submit login

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")
    }



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: