// scala code
object Test {
// collect combines filter and map
List(1, 2, 3, 4, 5).collect {
case a: Int if a > 3 => a + 3
} // List(7, 8)
}
Friday, October 16, 2015
Subscribe to:
Post Comments (Atom)
// scala code
object Test {
// collect combines filter and map
List(1, 2, 3, 4, 5).collect {
case a: Int if a > 3 => a + 3
} // List(7, 8)
}
0 comments:
Post a Comment