In Scala REPL si possono trovare i tipi di valore:Scala REPL: come trovare il tipo di funzione?
scala> val x = 1
x: Int = 1
scala> :t x
Int
Eppure Scala REPL non mostra le informazioni sul tipo per le funzioni:
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
^
Come trovare tipo di funzione a Scala REPL?
ne dite di fare quello che dice nel messaggio di errore? – folone
possibile duplicato di [this] (http://stackoverflow.com/questions/15583551/type-information-in-the-scala-repl) –