Question: n-Tuples in maple

Hello,

 

I am in need of a command that given a positive integer n (length of tuple), and a bound b, the output is a list of all n tuples with elements ranging from 0 to b. The command is analogous to "Tuples" in Mathematica:

http://reference.wolfram.com/mathematica/ref/Tuples.html

 

Thank you for the help!

Please Wait...