I would like to filter my data set on two conditions at once.
Is it possible?
I want something like this:
mystuff = mystuff.filter(_.isX &
While there might be some performance impact depending on what "myStuff" is, you could always filter twice
mystuff = mystuff.filter(_.isX).filter(_.name == "xyz")