val test3 = (str: String) : String => {
str + str
}
val test3 = (str: String) => {
str + str
}
names.mkString(",")
// is the same as
names mkstrign ","
def main( args : Array[String]) : Unit = {
val test3 = (str: String) => {
(str + str)
}
println test3 ("wow")
}
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
object MapReduce {
def mapreduce( mapf : ( String, String ) => List[(String, String)] ,
reducef : (String , List[String]) => List[String] ,
coll : List[( String , String)]) : List[(String, String)] = {
coll.map( (x, y )=> mapf(x, y) )
}
}