From 7bc6d371696e2c6dae407f2233ebc43fa701a53d Mon Sep 17 00:00:00 2001 From: Chris Poole Date: Mon, 9 Aug 2021 08:56:26 +0100 Subject: [PATCH] Update ManipulatingCollections --- sheets/_scala/ManipulatingCollections | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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