Revision: 21063
Updated Code
at December 2, 2009 12:15 by berndschiffer
Updated Code
def words = [
berndschiffer: 'Angstschweiss', // ß -> ss
mittie: 'Herbstschnee',
mittie: 'rontgst', // ö -> o
mittie: 'Durststrecke',
mittie: 'Kunstspringen',
mittie: 'Borschtschschmand',
ipreuss: 'Borschtschschussel', // ü -> u
]
println words.collect{ user, word ->
def cluster = word.toLowerCase().split(/[aeiou]/).sort{ it.size() }.toList().last()
[cluster] << "@$user found the longest consonant cluster '$cluster' in the word '$word'."
}.sort{ it.first().size() }.last().last()
Revision: 21062
Updated Code
at December 2, 2009 12:13 by berndschiffer
Updated Code
def words = [
berndschiffer: 'Angstschwei�',
mittie: 'Herbstschnee',
mittie: 'rontgst', // ö -> o
mittie: 'Durststrecke',
mittie: 'Kunstspringen',
mittie: 'Borschtschschmand',
ipreuss: 'Borschtschschussel', // ü -> u
]
println words.collect{ user, word ->
def cluster = word.toLowerCase().split(/[aeiou]/).sort{ it.size() }.toList().last()
[cluster] << "@$user found the longest consonant cluster '$cluster' in the word '$word'."
}.sort{ it.first().size() }.last().last()
Revision: 21061
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 2, 2009 12:13 by berndschiffer
Initial Code
def words = [
berndschiffer: 'Angstschweiß',
mittie: 'Herbstschnee',
mittie: 'rontgst', // ö -> o
mittie: 'Durststrecke',
mittie: 'Kunstspringen',
mittie: 'Borschtschschmand',
ipreuss: 'Borschtschschussel', // ü -> u
]
println words.collect{ user, word ->
def cluster = word.toLowerCase().split(/[aeiou]/).sort{ it.size() }.toList().last()
[cluster] << "@$user found the longest consonant cluster '$cluster' in the word '$word'."
}.sort{ it.first().size() }.last().last()
Initial URL
Initial Description
Initial Title
Finding the Longest Consonant Cluster
Initial Tags
textmate, search, groovy
Initial Language
Groovy