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…
Part of FineEnvs/repo2rlenv-r2e-gym.