Prolog program to add an element to the begining of a list....
domains x = integer l = integer* predicates add(x,l,l) clauses add(X,List,[X|List]). Output : Goal: add(3,[4,1,6,2],List) List=[3,4,1,6,2] 1 Solution