|
From: | tpeplt |
Subject: | Re: Undefined behavior for the function ‘last’ or an error? |
Date: | Mon, 01 Apr 2024 13:12:37 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) |
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" > --
[Prev in Thread] | Current Thread | [Next in Thread] |