[ https://issues.apache.org/jira/browse/GROOVY-7432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558901#comment-14558901 ]
Peter Ledbrook edited comment on GROOVY-7432 at 5/26/15 10:35 AM: ------------------------------------------------------------------ * {{collate()}} ? * {{collectMany()}} ? * {{containsAll(String[])}} * {{containsAll(Collection<String>)}} * {{count(Closure)}} * {{countBy(Closure)}} * {{disjoint(CharSequence)}} * {{dropRight()}} * {{eachPermutation(Closure)}} * {{findResults(Closure)}} * {{first()}} * {{groupBy(Closure)}} * {{head()}} * {{indexed()/indexed(int}} * {{init()}} * {{intersect(CharSequence)}} * {{last()}} * {{max()/max(Comparator)}} (I assume {{max(Closure)}} isn't needed as the closures can be passed as Comparators) * {{min()/min(Comparator)}} * {{permutations()/permutations(Closure)}} * {{sort()}} (various signatures) * {{tail()}} * {{takeRight()}} * {{toSorted()}} * {{toUnique()}} * {{withIndex()}} was (Author: pledbrook): * {{any(Closure)}} * {{collate()}} ? * {{collectMany()}} ? * {{containsAll(String[])}} * {{containsAll(Collection<String>)}} (this doesn't exist on {{Iterable}}, but surely it should) * {{count(Closure)}} * {{countBy(Closure)}} * {{disjoint(CharSequence)}} * {{dropRight()}} * {{eachPermutation(Closure)}} * {{findResults(Closure)}} * {{first()}} * {{groupBy(Closure)}} * {{head()}} * {{indexed()/indexed(int}} * {{}} * {{}} * {{}} * {{}} * {{}} * {{}} * {{}} * {{}} * {{}} * {{}} * {{}} * {{}} > Enhance CharSequence with appropriate Iterable extension methods > ---------------------------------------------------------------- > > Key: GROOVY-7432 > URL: https://issues.apache.org/jira/browse/GROOVY-7432 > Project: Groovy > Issue Type: Improvement > Components: groovy-jdk > Reporter: Peter Ledbrook > Assignee: Guillaume Laforge > > Groovy enables developers to treat {{CharSequence}}s as if they were true > sequences. For example, you can use a for loop and the array index operator. > Some extension methods are missing though. One I was hoping to find was the > {{count(Closure)}} method. I think it makes sense to incorporate any > {{Iterable}} extension methods into {{CharSequence}} as well. -- This message was sent by Atlassian JIRA (v6.3.4#6332)