Search found 2 matches
- Mon Dec 21, 2009 6:45 am
- Forum: Common Lisp
- Topic: Using throw to return a value?
- Replies: 2
- Views: 4125
Re: Using throw to return a value?
Thank you!
- Sun Dec 20, 2009 6:31 pm
- Forum: Common Lisp
- Topic: Using throw to return a value?
- Replies: 2
- Views: 4125
Using throw to return a value?
Hi. I suppose I should say I'm new to lisp first. I found the following code in Maxima (src/commac.lisp) and was wondering why it was written this way... (defun appears (tree var) (cond ((equal tree var) (throw 'appears t)) ((atom tree) nil) (t (appears (car tree) var) (appears (cdr tree) var))) nil...