Hello all,
As newbie in Lisp, I'm faced off at an issue linked to the assoc function.
Hereafter, the 2 parts of code involved in my issue:
Could you please tell me where is located my mistake or give me a clue in order to fix it?
Is the keyword case-sensitivity like CHAT different to chat?
What is the difference between these 2 types of declaration?
By advance, thanks for your help. I assume my problem is obvious for people who know lisp and I'm sorry to bother lisp expert.
As newbie in Lisp, I'm faced off at an issue linked to the assoc function.
Hereafter, the 2 parts of code involved in my issue:
(setq values '((x . 100) (y . 200) (z . 50)))
(assoc 'y values)
This code is working without any problem (the code is an example extracted from the assoc http://www.lispworks.com/documentation/ ... .htm#assoc) (setq FrAng '(((poisson) fish) ((chat) cat) ((chien) dog)))
(assoc 'chat FrAng)
But this code is not working and I don't know why, I'm expected to have the 'cat' answer.Could you please tell me where is located my mistake or give me a clue in order to fix it?
Is the keyword case-sensitivity like CHAT different to chat?
What is the difference between these 2 types of declaration?
By advance, thanks for your help. I assume my problem is obvious for people who know lisp and I'm sorry to bother lisp expert.