LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
William F Hammond <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Tue, 25 Jan 2011 11:40:48 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Robin Fairbairns <[log in to unmask]> writes:

> the "lisp heritage" is no more than simple use of some lisp names
> for some latex internal operations (e.g., car, cdr).  it's a long
> time (>40 years) since i learned lisp, but i don't remember a
> special name for items in a lisp list.  . . .  i think element is
> as good as it gets, in this context.

In Gnu Emacs Lisp its name is "elt".

Cheers.

                                    -- Bill

----------------------------------------------------------------------
P.S.  To refresh after 40 years:

Go to the "scratch" buffer in Gnu Emacs and enter
    (setq myseq '("a" "b" "c" "d" "e"))
then press C-j to see:
    ("a" "b" "c" "d" "e")
Then
    (elt myseq 3)
which returns:
    "d"
With the cursor over "elt" above enter  C-h f
to see the help for "elt":
    elt is a built-in function in `C source code'.
    (elt SEQUENCE N)
    
    Return element of SEQUENCE at index N.

----------------------------------------------------------------------

ATOM RSS1 RSS2