struct

added
1.0

ns
clojure.core

type
function

(struct s & vals)

Returns a new structmap instance with the keys of the
structure-basis. vals must be supplied for basis keys in order -
where values are not supplied they will default to nil.

                user> (defstruct mystruct :foo :bar)
#'user/mystruct

user> (struct mystruct "eggplant" "pizza")
{:foo "eggplant", :bar "pizza"}