Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
L=[[X,Y,Z],[1,A,B],[2,C,D]], L ins 1..3, all_different(L), label(L).
リストのリスト内の変数に値を入力したいだけです。リストの要素 (リスト) をより簡単な方法で取得する解決策はありますget_element_at(L,1)か?
get_element_at(L,1)
get_element(LL,M,N,Element) :- length([_|L01],M), length([_|L02],N), append(L01,[L|_],LL), append(L02,[Element|_],L).