> List(0, 1, 2, 3, 4, 5) val even = filter(xs, { x: Int => x % 2 == 0})// > List(0, 2, 4) val smallLengths = filter(List("because", "english"), { str: String => str.length < 8 }) //> List(because, english) case class Person(name: String, address: String, age: Int) val giantSmilers = List( Person("Pat", "Hidden Village of Konoha", 100), Person("Sonito", "Soul Society", 101), Person("Murat", "New World Grandline", 102), Person("Melvic", "Anywhere with Pringles and Coffee", 105)) val namedMelvic = filter(giantSmilers, { gs: Person => gs match { case Person("Melvic", _, _) => true case _ => false }}) > List(Person(Melvic,Anywhere with Pringles and Coffee,105))