Atom - - Cartesian Power

Characters:

Tags: math , number , array , combinatorics , vectorize

Arity: dyadic

This atom is dyadic, which means it takes two arguments.

Functionality

Return all lists of y elements of x (duplicates are allowed).

Details

Returns a flat list of length len(x)y containing all combinations, with duplicates, of y elements of x, ordered lexicographically by order of appearance in x.