Scala Tutorialsを読む 10 Method definition 2
http://scalatutorials.com/tour/interactive_tour_of_scala_method_definition_2.html
今日は10 Method definition 2を読みます。
return
keyword is optional- リターンキーワードはオプショナルです。
- Return type is inferred
- リターン型は推論されます
- (for non recursive methods
- (非再帰な関数で、、、のための)
- and methods that don't have an explicit return value)
- explicitな(明確な)リターン値を持たない)
再帰的でないなら、戻り値の型は省略出来ますって話でした。