title: Scala REPL: How to find function type?
body: <p>In Scala REPL one can find value types:</p>
  
  <pre><code>    scala&gt; val x = 1
      x: Int = 1
  
      scala&gt; :t x
      Int
  </code></pre>
  
  <p>Yet Scala REPL does not show the type information for functions:</p>
  
  <pre><code>    scala&gt; def inc(x:Int) = x + 1
      inc: (x: Int)Int
  
  scala&gt; :t inc
  &lt;console&gt;:9: error: missing arguments for method inc;
  follow this method with `_' if you want to treat it as a partially applied function
         inc
         ^
  &lt;console&gt;:9: error: missing arguments for method inc;
  follow this method with `_' if you want to treat it as a partially applied function
            inc
            ^
  </code></pre>
  
  <p>How to find function type in Scala REPL ?</p>