Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:dydaktyka:intro2ai:labs:lab_prolog2 [2023/01/13 11:01]
ikaf [3. Counting items]
en:dydaktyka:intro2ai:labs:lab_prolog2 [2023/01/13 11:14] (current)
ikaf [9. List permutations]
Line 289: Line 289:
 permutation([X | L], P) :- permutation([X | L], P) :-
       permutation(L,​ L1),       permutation(L,​ L1),
-      ​insert(X, L1, P).+      ​list_insert(X, L1, P).
  
 permutation2([],​ []). permutation2([],​ []).
en/dydaktyka/intro2ai/labs/lab_prolog2.txt · Last modified: 2023/01/13 11:14 by ikaf
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0