Groovy web console

subscribe to the feed Subscribe
to this
site

Groovy Inline Intersect Implementation

Published 2 weeks ago by Kirill Knyazev with tags groovy intersect
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def foo = [4, 8, 15, 16, 23, 42]
def bar = [3, 15, 17, 23, 27]

println "${foo.with({it - (it - bar)})}"