Name

setf

Usage

macro

Syntax

(setf place value)

Description

Assigns value to place. place may be transformed by (symbol) macro expansion. See the file core/setf.

user 1 > (var a '(1 2 3))
it: (1 2 3)
user 2 > (setf (second a) 'two)
it: two
user 3 > a
it: (1 two 3)
user 4 > (macroexpand '(setf (second a) 'two))
it: (set-second a 'two)