ClojureDocs

Nav

Namespaces

replace

clojure.core

Available since 1.0 (source)
  • (replace smap)
  • (replace smap coll)
Given a map of replacement pairs and a vector/collection, returns a
vector/seq with any elements = a key in smap replaced with the
corresponding val in smap.  Returns a transducer when no collection
is provided.