Search found 5 matches
- Tue Oct 04, 2011 3:59 pm
- Forum: Common Lisp
- Topic: Seeking some advice
- Replies: 11
- Views: 27157
Re: Seeking some advice
Okay so I have no clue what exactly is being asked of me in question 4, but I gave number 5 a shot. I first got stuck with how to use the function funcall since this wasn't covered in class. Here's what I have so far, but it's returning errors. Am I going to the right way? (defun satisfy (proc lst) ...
- Mon Oct 03, 2011 9:48 am
- Forum: Common Lisp
- Topic: Seeking some advice
- Replies: 11
- Views: 27157
Re: Seeking some advice
I figured it out! (defun first-odd (lst) "(lst) Returns the first odd integer in a list of integers or ‘none if none are odd." (do ((numbers lst (cdr numbers))) ((null numbers) 'none) (if (oddp (car numbers)) (return (car numbers))))) Thanks for the help, I have 2 more problems to do for...
- Mon Oct 03, 2011 9:25 am
- Forum: Common Lisp
- Topic: Seeking some advice
- Replies: 11
- Views: 27157
Re: Seeking some advice
Ramarren is right haha.. oups.. Could someone just hint me as to where the return fits in all of this? It's the one function in this exercise I don't know.
- Sun Oct 02, 2011 5:54 pm
- Forum: Common Lisp
- Topic: Seeking some advice
- Replies: 11
- Views: 27157
Re: Seeking some advice
Thanks so much for the help guys! I've been super busy with other courses lately. But I'll be sure to digest all the feedback and try making this work! I'll post back in 3 days with what I can figure out by then. Quick edit: Number 2 works out now! I guess I didn't grasp the way mapcar mapped functi...
- Wed Sep 28, 2011 8:14 pm
- Forum: Common Lisp
- Topic: Seeking some advice
- Replies: 11
- Views: 27157
Seeking some advice
Hello LispForum, I'm new here as you can see from this being my first post. I'm a college student and am currently taking a computational psychology course. We started covering the basics of Lisp and I felt pretty comfortable and knew my way around. However, I'm running into some difficulty here and...