You are viewing a single comment's thread. Return to all comments →
str.each_char.select { |c| c.bytesize > 1 }.count
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby - Strings - Iteration
You are viewing a single comment's thread. Return to all comments →