Name

set-elt

Usage

special-form/function

Syntax

(set-elt obj index... value)

Description

Assigns value to the place index... of obj. A multi-dimensional array uses more than one index.

user 1 > (let obj (new null))
it: #s(  )
user 2 > (set-elt obj "name" "mies")
it: "mies"
user 3 > (elt obj "name")
it: "mies"
user 4 > (attr obj 'name)
it: "mies"
user 5 > (macroexpand '(setf (elt obj "name") "mies"))
it: (set-elt obj "name" "mies")