I'm writing a lexer currently, and it can possibly error in a few areas, so I'm returning an iterator of results with the token and a lex error: Iterator(Result(Token, LexErr))
What would be the best way to convert that to a type of Result(Iterator(Token), LexErr)? I was trying to figure out how to use something like iterator.fold_until but I think I might be missing something.