HF RL Explorer

distinct combinations raises IndexError when r=0

distinct combinations raises IndexError when r=0: a task in repo2rlenv-swe-smith (Harbor dataset). mi.distinct combinations(iterable, 0) raises an IndexError instead of yielding a single empty tuple () , which is the correct result (there is exactly one way to choose 0 elements from any iterable).

The task

`mi.distinct_combinations(iterable, 0)` raises an `IndexError` instead of yielding a single empty tuple `[()]`, which is the correct result (there is exactly one way to choose 0 elements from any iterable).

Part of FineEnvs/repo2rlenv-swe-smith.