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.