Ruby - Strings - Iteration

  • + 0 comments

    def count_multibyte_char(s) s.chars.filter{ |char| char.each_byte.size > 1 }.count end