Groovy web console

subscribe to the feed Subscribe
to this
site

test-disjunctin

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def oldList = ["foo", "bar", "baz"]
def newList = ["baz", "qux"] 
(newList - oldList).each {
    println "Adding new element $it"
}