Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, there is: range on a string works on runes by decoding UTF-8.


That has nothing to do with "a string's internal representation". That is just how a range loop is defined/implemented.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: