Liking cljdoc? Tell your friends :D

useful.datatypes


assoc-recordcljmacro

(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.
raw docstring

make-recordcljmacro

(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.
raw docstring

record-accessorscljmacro

(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.
raw docstring

record-fieldsclj

(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.
raw docstring

update-recordcljmacro

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close