Skip to content

clojure.core/set!

View this page on ClojureDocs

Type: var Added: Clojure unknown Examples: 4 Runnable: 1
()

Assignment special form. When the first operand is a field member access form, the assignment is to the corresponding field. If it is an instance field, the instance expr will be evaluated, then the expr. In all cases the value of expr is returned. Note - you cannot assign to function params or local bindings. Only Java fields, Vars, Refs and Agents are mutable in Clojure. See http://clojure.org/special_forms for more information.

Examples

by ninjudd on . May have evaluation errors.
by AtKaaZ on
by nhlx2 on . May have evaluation errors.
by reborg on . May have evaluation errors.

Note by gregg-williams

As of Clojure 1.2, the basic info for set! has moved to http://clojure.org/vars.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.