Search found 2 matches

by freeside
Sun Mar 19, 2017 12:12 am
Forum: Homework
Topic: Exercise from Grahams "Ansi Common Lisp"
Replies: 3
Views: 17200

Re: Exercise from Grahams "Ansi Common Lisp"

Ok. So I have to test if there's a list except for the empty list.

Thank You.
by freeside
Sat Mar 18, 2017 4:36 am
Forum: Homework
Topic: Exercise from Grahams "Ansi Common Lisp"
Replies: 3
Views: 17200

Exercise from Grahams "Ansi Common Lisp"

Hello, I'm a LISP-Beginner and I'm working through Paul Grahams book. There is an exercise: Define a function that takes a list as an argument and return true if one of its elements is a list. I tried: (defun my-find (lst) (if (listp (car lst)) t (my-find (cdr lst)))) But it will return true even if...