f python?

Kaz Kylheku kaz at kylheku.com
Wed Apr 11 10:06:53 EDT 2012


["Followup-To:" header set to comp.lang.lisp.]
On 2012-04-11, Shmuel Metz <spamtrap at library.lspace.org.invalid> wrote:
> In <87wr5nl54w.fsf at sapphire.mobileactivedefense.com>, on 04/10/2012
>    at 09:10 PM, Rainer Weikusat <rweikusat at mssgmbh.com> said:
>
>>'car' and 'cdr' refer to cons cells in Lisp, not to strings. How the
>>first/rest terminology can be sensibly applied to 'C strings' (which
>>are similar to linked-lists in the sense that there's a 'special
>>termination value' instead of an explicit length)
>
> A syringe is similar to a sturgeon in the sense that they both start
> with S. LISP doesn't have arrays, and C doesn't allow you to insert
> into the middle of an array.

Lisp, however, has arrays. (Not to mention hash tables, structures, and
classes). Where have you been since 1960-something?

  (let ((array #(1 2 3 4)))
    (aref array 3)) ;; -> 4, O(1) access



More information about the Python-list mailing list