skip to main
|
skip to sidebar
Andy's Scala notes
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Nuclear Carrot - Andy's website
Labels
actors
(1)
anonymous type
(1)
cast
(1)
functions
(5)
implicits
(1)
instanceOf
(1)
lift
(1)
links
(2)
list
(4)
loop
(3)
map
(1)
option[T]
(1)
string
(2)
tuples
(1)
xml
(1)
No comments:
Post a Comment