Groovy web console

subscribe to the feed Subscribe
to this
site
issues with collection.first() (via #groovywebconsole)
tweet this snippet Tweet
this
script

issues with collection.first()

Published 7 months ago by felipecao with tags collections first
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def collection = ['apple', 'banana']

print collection.first()


def collection2 = []

print collection2.first()