Replace `partition` with `reject` as selected elements are not used
Merge pull request #1074 from tkareine/replace-partition-with-reject

Refactor: replace `partition` with `reject` as selected elements are not used