So say i have some list like
val l = List((1, \"blue\"), (5, \"red\"), (2, \"green\"))
And then i want to filter one of them out, i can do some
There are a bunch of options:
for (x <- l; (n,s) = x if (n != 2)) yield x l.collect{ case x @ (n,s) if (n != 2) => x } l.filter{ case (n,s) => n != 2 } l.unzip.zipped.map((n,s) => n != 2).zip // Complains that zip is deprecated