DD
Size: a a a
DD
VS
VS
DD
IN
IN
IN
S
VS
S
n
S
S
4
def text = "Beautiful is better than ugly. Explicit is better than implicit."
def numbers = text.split(" ").collect{it.length()}
print numbers.sort().collectEntries{[(it) : numbers.count(it)]}
c
c
c
R.
Y
N
def text = "Beautiful is better than ugly. Explicit is better than implicit."
def numbers = text.split(" ").collect{it.length()}
print numbers.sort().collectEntries{[(it) : numbers.count(it)]}