Hi,

One of the things I really like about Groovy is how strings can be treated
as sequences of characters. Unfortunately this seems to break down in some
cases. For example, there is no `count()` method that takes a closure. In
my case I'm trying to count vowels, but you might want to count upper case
letters or anything else like that.

Does it make sense to extend all the Iterable methods and properties to
CharSequence as well? Or should developers turn a string into a list,
perform the processing and then convert it back? Either way, the current
setup seems a bit inconsistent.

Peter

Reply via email to