skipWhile_i improvements

a "lazy" version of the skipWhile_i function