is it possible to do this same thing with different domains?
For example if x=1 and List=[1,2,3] in your example? What is the comparator to be used?
Code: Select all
X=1,
List=[1,2,3],
L = list::removeAllBy(somecomparitor, List, X),
Code: Select all
X=1,
List=[1,2,3],
L = list::removeAllBy(somecomparitor, List, X),