drop while and take while raise TypeError when passed an iterator
drop while and take while raise TypeError when passed an iterator: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When calling drop while or take while with an iterator (any iterable that isn't directly subscriptable), a TypeError is raised because the functions try to slice the original…
The task
When calling `drop_while` or `take_while` with an iterator (any iterable that isn't directly subscriptable), a `TypeError` is raised because the functions try to slice the original input using index notation.
Part of FineEnvs/repo2rlenv-r2e-gym.