io.aviso.toolchest.metadata

added in 0.1.2

Functions for operating on metadata.

assoc-meta

(assoc-meta x & keyvals)

Uses vary-meta to return a new object with additional metadata associated.

merging-meta

macro

added in 0.1.4

(merging-meta x expression)

Evaluates the expression, then merges metadata from x into the result. Metadata on the expression takes precendence over metadata from x.

This helps with clojure.core collection functions (map, reduce, etc.) that do not maintain metadata.