[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A subtle question about naming
From: |
jronald |
Subject: |
Re: A subtle question about naming |
Date: |
Wed, 13 Sep 2006 05:27:23 +0800 |
I've learned a lot.
Thanks. :)
"Brendan Halpin" <brendan.halpin@ul.ie>
??????:87wt88ssgn.fsf@wivenhoe.staff8.ul.ie...
> "jronald" <followait@163.com> writes:
>
>> Why use auto-mode-alist, but not auto-mode-list?
>
> Because it's an association-list, not just an ordinary list.
>
> Elements of association-lists are cons-pairs, e.g (a . b), and we
> can use the assoc function to find matches:
>
> (assoc "potato"
> '(("apple" . "fruit") ("potato" . "vegetable") ("icecream" .
> "desert")))
> evaluates to ("potato" . "vegetable")
>
> Brendan
> --
> Brendan Halpin, Department of Sociology, University of Limerick,
> Ireland
> Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F2-025 x
> 3147
> mailto:brendan.halpin@ul.ie
> http://www.ul.ie/sociology/brendan.halpin.html