I want to subset on people's names whose surnames are in names.
The following isn't working
val names = List("Smith","Adams","Crawford")
val people =List("Billy Jean","Will Morten","Lenhardt Peterson","Lauryn Crawford","George Smith","Priscilla Adams")
people.filter(p=> names.exists(p.name.contains))
p.nameanyway? That's a compilation error.