On Wednesday, August 17, 2016 at 3:45:44 PM UTC-4, [email protected] wrote: > > Note also that using a range to loop through a string is not a good idea > if it might contain unicode characters. > > s = "a°sd2β2" > for i=1:length(s) >
"for i in eachindex(s)" works, and in general eachindex is the recommended way to do iteration over the indices of a collection.
