Wednesday, 3 June 2009

Dont think loop!

When ever you want to loop thru a list returning a new list of values use map or flatmap

If you do need to loop:
for( i <- 0 until 4) {
}

No comments:

Post a comment