Groovy web console

subscribe to the feed Subscribe
to this
site
Unique (via #groovywebconsole)
tweet this snippet Tweet
this
script

Unique

Published 4 months ago by Gabriel Bianchi
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Collection a = [1,3,4,5,3]
Collection b = a.unique()
println a
println b

Collection c = [1,3,4,5,3]
Collection d = c.unique(false)
println c
println d