then
文の実装が作業中だったfunc testNested3() -> Int { if .random() { print("hello") then if .random() { then 1 } else { then 2 } } else { () () then switch Bool.random() { case true: then 0 case false: then 1 } } }
return
のような感じで then
を使うと、それを式の評価値として指定できる。