Skip to content

Combinatorics functions (on arrays) #43175

@filimonov

Description

@filimonov

arrayPermutations( [1,2,3] ) => [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1]]
arrayPartialPermutations( [1,2,3], 2 ) => [ [1,2], [1,3], [2,1], [2,3], [3,1], [3,2]]
arrayCombinations( [1,2,3], 2 ) => ( [1,2], [1,3], [2,3] )

maybe also factorial function to simplify some counts

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-regular-functionRegular scalar functions: string processing, data conversion, arithmetic, math, comparison, condi...feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions