Function Entry: LENGTH

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: LENGTH

Name

length

Class

Function

Syntax

(length item)

Arguments and Values

  • item: list

Description

Returns the number of elements in a list.

Return Values

Integer length.

Side Effects

None.

Examples

  • (length '(a b c d)) => 4
  • (length '(a b (c d))) => 3
  • (length '()) => 0

Compatibility

The dedicated Autodesk page specifies length for lists. Acceptance of strings or other sequence-like values should not be assumed without further evidence.

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.