RosettaCodeData/Task/Array-length/Groovy/array-length.groovy

3 lines
54 B
Groovy

def fruits = ['apple','orange']
println fruits.size()