devilelephant
Wednesday, January 5, 2011
Groovy to Scala: Closures
Defining a closure that takes two variables and returns a String.
Groovy:
{ x, y -> ...}
Scala:
(x:Stirng, y:String):String => { ... }
Note, Scala requires types for values x and y.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment