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 > (let obj (new null))
it: obj
user > (set-elt obj "name" "mies")
it: "mies"
user > (elt obj "name")
it: "mies"
user > (attr obj 'name)
it: "mies"
user > (macroexpand '(setf (elt obj "name") "mies"))
it: (set-elt obj "name" "mies")