Name

set-first

Usage

builtin-function

Syntax

(set-first seq item)

Description

Sets the first element of seq to item.

user 1 > (let seq '(a 2 3 4))
it: (a 2 3 4)
user 2 > (set-first seq 'a)
it: a
user 3 > (macroexpand '(setf (first seq) 'a))
it: (set-first seq 'a)