このディレクトリの索引

# 出典 :: Prolog creating list with consecutive numbers # I'm newbie in Prolog and I've tried to create a list. # For example when I write mazeCreator(3,List). # I want to push every number like 1/1,1/2,1/3,2/1,2/2,2/3,3/1,3/2,3/3 in a list.To do this, # I wrote a predicate but It does not work, # Is there anyone who can help me ? Thanks in advance!. mazeCreater(M,L) :- findall(J/K,( between(1,M,J), between(1,M,K)),L).