0
Par exemple, j'ai:Comment obtenir prédicats valeurs
pos(10, 20).
Comment puis-je écrire le prédicat qui retourne le premier terme pos (10).
get_pos_x(Pos) :- % should return the first pos param(10).
Exemple de travail:
get_pos_x(pos(10,20)) :- % should write 10.