Iterate.on(String) invokes toCharArray which effectively duplicates the characters of the given string. This is unnecessary.
Implement an abstract Iterator to better support iterating elements given a start and end index. Also provide implementation for iterating characters of a String, and most common arrays of primitives (byte, char, int).
Iterate.on(String)
invokestoCharArray
which effectively duplicates the characters of the given string. This is unnecessary.Implement an abstract Iterator to better support iterating elements given a start and end index. Also provide implementation for iterating characters of a String, and most common arrays of primitives (byte, char, int).