HF RL Explorer

Bug: partition and chunks give wrong results when step n and input is an iterator

Bug: partition and chunks give wrong results when step n and input is an iterator: a task in repo2rlenv-swe-next (Harbor dataset). When calling partition(n, step, seq) or chunks(n, step, seq) with step n , the result depends on whether seq is a list or an iterator — even if both contain the same…

The task

When calling `partition(n, step, seq)` or `chunks(n, step, seq)` with `step > n`, the result depends on whether `seq` is a list or an iterator — even if both contain the same data. The iterator path produces chunks of the wrong length, wrong content, and a different number of parts.

Part of FineEnvs/repo2rlenv-swe-next.