Name

set-symbol-value

Usage

builtin-function

Syntax

(set-symbol-value sym value)

Description

Assigns value to the global variable sym.

user 1 > (def z 0)
it: z
user 2 > (set-symbol-value 'z 1)
it: 1
user 3 > (setq z 2)
it: 2
user 4 > (macroexpand '(setf (symbol-value 'z) 1))
it: (set-symbol-value 'z 1)