Wednesday, May 4, 2011

PROGRAM TO CALCULATE ELEMENTS IN LIST


callist([],0).
callist([_|T],X):- callist(T,X1), X is X1+1.

No comments:

Post a Comment