functions in common lisp

Discussion of Common Lisp

functions in common lisp

Postby mwandi » Sun Oct 07, 2012 11:01 pm

is there a way i can write a function P (n) such that for any integer n there is a list of three elements, namely the square, cube, and fourth power of n????
i am trying to learn functions and i was looking at a certain book and i saw this question any ideas?
Posts: 1
Joined: Sun Sep 30, 2012 1:23 pm

Re: functions in common lisp

Postby nuntius » Mon Oct 08, 2012 5:03 pm

Yes, this is quite doable. Please see one of the excellent free books in our FAQ for an introduction to the language.
User avatar
Posts: 532
Joined: Sat Aug 09, 2008 10:44 am
Location: Newton, MA

Return to Common Lisp

Who is online

Users browsing this forum: No registered users and 3 guests