Provides a bidirectional mapping for keeping track of prefix->uri mappings in xml namespaces.
This has the semantics of a basic key -> multiple values map + two special features, both of which are dictated by the xml standard:
Provides a bidirectional mapping for keeping track of prefix->uri mappings in xml namespaces. This has the semantics of a basic key -> multiple values map + two special features, both of which are dictated by the xml standard: - instead of a special dissoc, there is assoc to empty string or nil - there are two fixed, unique mappings: - "xml" <-> ["http://www.w3.org/2000/xmlns/"] - "xmlns" <-> ["http://www.w3.org/XML/1998/namespace"]
(assoc put & {:as kvs})
(assoc! {:as put :keys [p->u u->ps]} prefix uri)
(get {:keys [p->u]} prefix)
(get-prefixes {:keys [u->ps]} uri)
(merge pu {:keys [:p->u]})
Merge two pu-maps, left to right
Merge two pu-maps, left to right
(merge-prefix-map pu pm)
Merge a prefix map into pu-map
Merge a prefix map into pu-map
(persistent! put)
(reduce-diff f s {ppu :p->u} {pu :p->u})
A high-performance diffing operation, that reduces f over changed and removed prefixes
A high-performance diffing operation, that reduces f over changed and removed prefixes
(transient pu)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close