Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Learning PROLOGUE

Name: Anonymous 2009-05-20 23:49

Good PROLOGUE books, please. I read S&A.

Name: Anonymous 2009-05-21 0:36

product([], 1).
product([H|T], X) :- product(T, Y), X is H * Y.

factorial(N, R) :- numlist(2, N, Ns), product(Ns, R).


that's all you need to know.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List