Skip to main content

replace

functionv1.7

cljs.core/replace

Available in:BBCLJCLJS
(replace [smap] [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.

No examples yet. Be the first to add one!