This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

functions in common lisp

2 posts · 2083 views

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?

Re: functions in common lisp

Yes, this is quite doable. Please see one of the excellent free books in our FAQ for an introduction to the language.