From: tpeplt <tpeplt@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Undefined behavior for the function ‘last’ or an error?
Date: Mon, 01 Apr 2024 13:12:37 -0400 [thread overview]
Message-ID: <87edbp9fcq.fsf@gmail.com> (raw)
In-Reply-To: <87il119g8u.fsf@gmail.com> (tpeplt@gmail.com's message of "Mon, 01 Apr 2024 12:53:21 -0400")
Forgot to mention -- these results are from Emacs version 29.3.
Start emacs from a shell prompt with "emacs -Q" to avoid any
re-definition of ‘last’.
> The built-in Emacs Lisp function ‘last’ accepts a list as its argument:
>
> (last '(a b c)) => (c)
>
> It also (surprisingly) accepts a non-list as its argument:
>
> (last 'a) => a
> (last 3.14) => 3.14
> (last "string of chars") => "string of chars"
>
--
next prev parent reply other threads:[~2024-04-01 17:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-01 16:53 Undefined behavior for the function ‘last’ or an error? tpeplt
2024-04-01 17:12 ` tpeplt [this message]
2024-04-01 17:28 ` [External] : " Drew Adams
2024-04-01 18:35 ` tpeplt
2024-04-01 19:25 ` Drew Adams
2024-04-01 20:11 ` tpeplt
2024-04-03 1:05 ` tpeplt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edbp9fcq.fsf@gmail.com \
--to=tpeplt@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.