Hacker News new | ask | show | jobs
by njs12345 5271 days ago
I think Xtend has extension methods for any Iterable that do what you want: http://download.eclipse.org/modeling/tmf/xtext/javadoc/2.0.1...

Point taken on Strings though - in this situation you'd want String to extend Iterable but it doesn't for historical reasons.