Dart String Iterable interface -


why doesn't dart string class implement iterable interface? seems there obvious notion of iteration strings, i.e. return each character in turn.

maybe not terse

string s = 'foo'; s.codeunits.foreach((f) => print(new string.fromcharcode(f))); s.runes.foreach((f) => print(new string.fromcharcode(f))); 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -