by shigemk2

当面は技術的なことしか書かない

2015-06-29から1日間の記事一覧

ScalaのREPLで関数の型をチェックする

Scala REPL: How to find function type?stackoverflow.com scala> def inc(x: Int) = x + 1 inc: (x: Int)Int scala> val a = inc(1) a: Int = 2 scala> :t a Int scala> :t inc <console>:9: error: missing arguments for method inc; follow this method with `_'</console>…