SHARE
TWEET

Untitled

a guest Sep 6th, 2010 20 Never
  1. scala> def f(s: String) =  s.toInt; def f(s: String, b: Int) = s.toInt
  2. f: (s: String,b: Int)Int <and> (s: String)Int
  3. f: (s: String,b: Int)Int <and> (s: String)Int
  4.  
  5. scala> Array("32", "25") map f
  6. res1: Array[Int] = Array(32, 25)
RAW Paste Data
Top