Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

how loop in scala

val out = for (e <- names) yield e.capitalize
val out = names.map(_.capitalize)
Source by alvinalexander.com #
 
PREVIOUS NEXT
Tagged: #loop #scala
ADD COMMENT
Topic
Name
9+9 =