• Source
    1. object Main extends App {
    2. val opt : Option[String] = Option("文字列")
    3. println("Some判定: " + opt)
    4. val result = opt.get
    5. println("結果: " + result)
    6. }