Tue, 19 Oct 2010 22:55:31 +0000, retard wrote:
> println(l.map(2 *).mkString(" "))
Made a mistake here, the correct code should be:
println(l.map(a => a*a).mkString(" "))
Tue, 19 Oct 2010 22:55:31 +0000, retard wrote:
> println(l.map(2 *).mkString(" "))
Made a mistake here, the correct code should be:
println(l.map(a => a*a).mkString(" "))