functions in common lisp

Discussion of Common Lisp
Post Reply
mwandi
Posts: 1
Joined: Sun Sep 30, 2012 1:23 pm

functions in common lisp

Post by 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?

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

Re: functions in common lisp

Post by 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.

Post Reply