Help lisp

Discussion of Common Lisp
Post Reply
Brown.

Help lisp

Post by Brown. » Mon May 25, 2009 4:54 pm

Make a function call in Lisp dividivel that recbe two arguments:
a dividend and a divisor x, and answer if T x is divisible by ye
NIL if x is not divisible by y.
pesquisar

Paul Donnelly
Posts: 148
Joined: Wed Jul 30, 2008 11:26 pm

Re: Help lisp

Post by Paul Donnelly » Tue May 26, 2009 12:34 pm

What do you have so far? Do you know in general how to determine whether a number is divisible by another?

nuntius
Posts: 538
Joined: Sat Aug 09, 2008 10:44 am
Location: Newton, MA

Re: Help lisp

Post by nuntius » Wed May 27, 2009 6:09 pm

Go to the CLHS (http://www.lispworks.com/documentation/ ... /index.htm), click on the "symbol index", and find the MOD function. Or search for it at http://lispdoc.com.

Post Reply