Add a subfactorial function to the more itertools library that computes the number of derangements of n…
Add a subfactorial function to the more itertools library that computes the number of derangements of n…: a task in repo2rlenv-swe-gen (Harbor dataset). The function should be accessible as mi.subfactorial(n) (i.e., exported from the top-level more itertools namespace).
The task
The function should be accessible as `mi.subfactorial(n)` (i.e., exported from the top-level `more_itertools` namespace).
Part of FineEnvs/repo2rlenv-swe-gen.