Search found 5 matches
- Tue Jul 01, 2014 1:48 pm
- Forum: Emacs Lisp
- Topic: Find a value in an association list
- Replies: 2
- Views: 35911
Re: Find a value in an association list
(defun recursive-assoc (key data) (cond ((consp data) <recursive-code-for-handling-nonempty-lists>) ((vectorp data) <recursive-code-for-handling-vectors>) (t (error "not a nonempty list or vector: %s" data)))) Thank you edgar-rift! It was very useful. I came up with this: (defun btx/disco...
- Sun Jun 29, 2014 10:25 am
- Forum: Emacs Lisp
- Topic: Find a value in an association list
- Replies: 2
- Views: 35911
Find a value in an association list
Dear all, I was wondering how I could find a value in an association list recursively, even if this value is inside a vector. Let me give you an example. I have this list (response from the Discogs API), let's call it discogs ((resp (version . "2.0") (release (data_quality . "Correct&...
- Sat Apr 05, 2014 7:11 am
- Forum: Common Lisp
- Topic: Loading code from PCL with quicklisp
- Replies: 4
- Views: 9014
Re: Loading code from PCL with quicklisp
'Common Lisp: A Gentle Introduction To Symbolic Computation' is indeed the perfect companion to 'Practical Common Lisp' in my beginner's opinion, and luckily these are the two physical books I bought for learning Common Lisp ;). I think PCL alone + Internet would be enough for a motivated beginner a...
- Fri Apr 04, 2014 5:20 pm
- Forum: Common Lisp
- Topic: Loading code from PCL with quicklisp
- Replies: 4
- Views: 9014
Re: Loading code from PCL with quicklisp
Thank you very much Edgar! It works now. I love to do everything in Emacs, so I was really impatient to build and use a perfect Common Lisp environment in it. Maybe I should have waited a little bit to avoid the 'black box' effect - as a matter of fact, I still don't really understand what (ql:quick...
- Fri Apr 04, 2014 7:29 am
- Forum: Common Lisp
- Topic: Loading code from PCL with quicklisp
- Replies: 4
- Views: 9014
Loading code from PCL with quicklisp
Hello everybody, As a beginner with Common Lisp (and programming), I am having trouble understanding what I think are basic concepts of quicklisp/ASDF. I am trying to load some code from Practical Common Lisp (chapter 3, "simple database") in my environment. I use Emacs + SLIME + SBCL + qu...