Skip to content

Add a note about how to permute with replacement #524

@CraftSpider

Description

@CraftSpider

Currently, trying to get 'permutations with replacement', it's hard to find in the documentation how to do that. I eventually found on the github from the issue about adding permutations how repeat_n(iter, iter.len()).multi_cartesian_product() can do what I want, but it would be nice if this was mentioned in the docs, either on permutations or as a search alias on multi_cartesian_product.

Alternatively, it might be nice to have permutation_with_replacement, but I'm not sure if that's common enough that it's desired in the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions