def foo = [4, 8, 15, 16, 23, 42] def bar = [3, 15, 17, 23, 27] println "${foo.with({it - (it - bar)})}"