Hello! There was a problem studying the prolog lists. This is how a list of items is displayed:
domains t_list=symbol* predicates nondeterm t(t_list) nondeterm show nondeterm print_list(t_list) clauses t_list (["ΡΠΈΠ·ΠΈΠΊΠ°","Ρ
ΠΈΠΌΠΈΡ","ΠΈΡΡΠΎΡΠΈΡ"]). t_list (["ΠΌΡΠ·ΡΠΊΠ°","Π±ΠΈΠΎΠ»ΠΎΠ³ΠΈΡ"]). print_list([ ]). print_list([X|Y]) :- write(X), nl, print_list(Y). show :- t(X), print_list(X),fail. goal show.
But then I donβt know what or how to create the facts or not, which would end up with something like this:
ΠΠ²Π°Π½ΠΎΠ². ΠΡΠ΅Π΄ΠΌΠ΅ΡΡ ΡΠΈΠ·ΠΈΠΊΠ° Ρ
ΠΈΠΌΠΈΡ ΠΈΡΡΠΎΡΠΈΡ ΠΠ΅ΡΡΠΎΠ². ΠΡΠ΅Π΄ΠΌΠ΅ΡΡ ΠΌΡΠ·ΡΠΊΠ° Π±ΠΈΠΎΠ»ΠΎΠ³ΠΈΡ
Help me please!)