Question: Generating a list..

Hello Maple experts. How could I generate a way to obtain the lists (Ws) for an arbitrary m (integer +)? (Below I ilustrate for m=1,2 and 3). Probably it is needed to use "apply" and "map".. but I don't see how to do it. #If m:=1, I want to generate the #following list: >W1:= [seq([B(j1)], j1=0..1)]; # the output --> [[B(0)], [B(1)]] #If m:=2, I want to generate the #following list: >W2:= [seq(seq([B(j1,j2)],j1=0..1),j2=0..1)]; #output-> [[B(0, 0)], [B(1, 0)], [B(0, 1)], [B(1, 1)]] #If m:=3, I want to generate the #following list: >W3:= [seq(seq(seq([B(j1,j2,j3)], j1=0..1),j2=0..1),j3=0..1)]; # output--> [[B(0, 0, 0)], [B(1, 0, 0)], [B(0, 1, 0)], [B(1, 1, 0)], [B(0, 0, 1)], [B(1, 0, 1)], [B(0, 1, 1)], [B(1, 1, 1)]] B is any function depending on js (j1.. if m=1, j1 and j2 if m=2.. and so on). Thanks in advance. JJacques
Please Wait...