Hi all. My first post here (hopefully not the last), so please be patient!
I've set out to learn Lisp (for great good, no less), and started with this "Practical Common Lisp" book (hence question here). But one of the very first examples made me confused. It's about plists.
CL-USER> (getf (list :a 1 :b 2) :a)
But this does not:
CL-USER> (defvar foo (list :a 1 :b 2))
CL-USER> (getf foo :a)
It gives me an error:
value (1 2 3) is not of the expected type (SATISFIES
[Condition of type TYPE-ERROR]
Indeed, when I check:
(1 2 3)
Where are my keyword symbols?!
I did try googling, but nothing on the first page looked like an answer to my question... perhaps I am too clueless at this point to find an answer on my own!