Groovy web console

subscribe to the feed Subscribe
to this
site

Groovy spread operator variation

Published 2 months ago by Bhagwat
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class Person{int age}
assert  [10, 20] == [ new Person(age: 10), new Person(age: 20) ].age