|
|
|
|
|
by jkkramer
5587 days ago
|
|
Records and structs can grow at runtime (insofar as immutable data structures grow). user> (defrecord Foo [x])
user.Foo
user> (assoc (Foo. 1) :y 2)
#:user.Foo{:x 1, :y 2}
user> (defstruct foo :x)
#'user/foo
user> (assoc (struct-map foo :x 1) :y 2)
{:x 1, :y 2}
|
|
I will announce this great news to a few of my closest friends :-)