Wednesday, 3 June 2009

tuples

val a = (4,"fish")

//to retrieve values do this:
a._1
a._2

No comments:

Post a comment