Ad
  • Default User Avatar

    Char::to_lowercase() and Char::to_uppercase() return an iterator because Unicode supports special case-mappings where the lower- or uppercase version of a char can be multiple chars. But the kata input domain is plain ASCII which has a one-to-one case-mapping, so we just grab the first (and only) char produced by the iterator.