1が値型を見つけることができます。Scala REPL:関数型の検索方法は? ScalaのREPLで
scala> val x = 1
x: Int = 1
scala> :t x
Int
しかし、ScalaのREPLは、関数の型情報を表示しません:
scala> def inc(x:Int) = x + 1
inc: (x: Int)Int
scala> :t inc
<console>:9: error: missing arguments for method inc;
follow this method with `_' if you want to treat it as a partially applied function
inc
^
<console>:9: error: missing arguments for method inc;
follow this method with `_' if you want to treat it as a partially applied function
inc
^
ScalaのREPLで関数の型を見つけるには?提案後
どのように? – folone
[this](http://stackoverflow.com/questions/15583551/type-information-in-the-scala-repl)の可能な複製 –