You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I filed bugs #13734 and #13759 recently, and then realized I could probably fix them myself. This does exactly that, with a couple additional modifications and additions to the test-suite to pick up on that.
I've never done this before, so please feel free to tell me all the things I'm doing wrong or could be doing better.
The permutations of
[x]
should be the list[[x]]
.Additionally, I would also expect the permutations of
[]
to be[[]]
(as it is in python, which also matches 0! = 1! = 1).Currently, the permutations function (
std::slice::ImmutableCloneableVector::permutations
) returns[]
in both cases.Example code:
Prints out
Instead of the expected
The text was updated successfully, but these errors were encountered: