Merge pull request #170 from CEPoole/patch-1

Fixing mistake in Scala/ManipulatingCollections
pull/176/head
Igor Chubin 3 years ago committed by GitHub
commit 9ef3cb5ce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,7 @@ l map { //note: the curly brackets allow us to make the map multi-line and us
l filter (_ % 2 == 0) //returns List(2,4)
// filterNot
l filter (_ % 2 == 0) //returns List(1,3,5)
l filterNot (_ % 2 == 0) //returns List(1,3,5)
// collect
// this is like a combination of filter and map

Loading…
Cancel
Save