val l = List(1, 2, 3, 4, 5, 6, 7, 8, 9) val i = List(2, 4, 5, 7) l.filter(e => i.contains(l.indexOf(e)))
So cute, right?
END