Function Entry: LAST
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: LAST
Name
last
Class
Function
Syntax
(last lst)
Description
Returns the last element or last cons structure of a list, according to AutoLISP list conventions.
Return Values
Returns the last element in the list.
Autodesk's examples show that if the last element is itself a list, that list is returned as the last element.
Side Effects
None.
Examples
(last '(a b c d e)) => E(last '(a b c (d e))) => (D E)
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [last (AutoLISP)](https://help.autodesk.com/cloudhelp/2025/ENU/AutoCAD-LT-AutoLISP-Reference/files/GUID-463C97F2-B72F-44C6-B19B-659D231AA836.htm)
- Status: documented.