I have an iterator over string chars. I’d like to skip whitespaces, do some char related computation, skip again whitespaces and so on. I think
skip_while(|c| c.is_whitespace()) could be enough, but it returns a
SkipWhile struct, not an
Iterator and I can’t figure out what to do with it.
Could you please help me understand this?
Thank you, Luca-