split before / split after / split when return for an empty iterable when maxsplit=0
split before / split after / split when return for an empty iterable when maxsplit=0: a task in repo2rlenv-swe-next (Harbor dataset). When calling split before , split after , or split when on an empty iterable with maxsplit=0 , the result is (a list containing one empty list) instead of (an empty…
The task
When calling `split_before`, `split_after`, or `split_when` on an empty iterable with `maxsplit=0`, the result is `[[]]` (a list containing one empty list) instead of `[]` (an empty list). Every other value of `maxsplit` correctly returns `[]`.
Part of FineEnvs/repo2rlenv-swe-next.