ぜのぜ

しりとりしようぜのぜのぜのぜ

102日目

日記

魚捌くの難しいね

今日書いたコード

let hoge: Int? = nil

switch hoge{
case .none:
    print("hoge is nil")
case .some(let unwrapped):
    print(unwrapped)
}
// hoge is nil

感想

これ知らんかった.

The type Optional is an enumeration with two cases, none and some(Wrapped),