Update ManipulatingCollections

pull/170/head
Chris Poole 3 years ago committed by GitHub
parent 78385b9ca2
commit 7bc6d37169
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