diff --git a/sheets/_scala/ManipulatingCollections b/sheets/_scala/ManipulatingCollections index 6b359b4..32a741b 100644 --- a/sheets/_scala/ManipulatingCollections +++ b/sheets/_scala/ManipulatingCollections @@ -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