(assoc-record record & attrs)
Assoc attrs into a record. Mapping fields into constuctor arguments is done an compile time, so this is more efficient than calling assoc on an existing record.
Assoc attrs into a record. Mapping fields into constuctor arguments is done an compile time, so this is more efficient than calling assoc on an existing record.
(make-record type & attrs)
Construct a record given a pairs of lists and values. Mapping fields into constuctor arguments is done an compile time, so this is more efficient than creating an empty record and calling merge.
Construct a record given a pairs of lists and values. Mapping fields into constuctor arguments is done an compile time, so this is more efficient than creating an empty record and calling merge.
(record-accessors & types)
Defines optimized macro accessors using interop and typehints for all fields in the given records.
Defines optimized macro accessors using interop and typehints for all fields in the given records.
(record-fields type)
Uses reflection to get the declared fields passed to the defrecord call for type. If called on a non-record, the behavior is undefined.
Uses reflection to get the declared fields passed to the defrecord call for type. If called on a non-record, the behavior is undefined.
(update-record record & forms)
Construct a record given a list of forms like (update-fn record-field & args). Mapping fields into constuctor arguments is done an compile time, so this is more efficient than calling assoc on an existing record.
Construct a record given a list of forms like (update-fn record-field & args). Mapping fields into constuctor arguments is done an compile time, so this is more efficient than calling assoc on an existing record.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close