(keyword-or-value value)
Takes value, possibly string, and if the first char is : transforms string into keyword. Otherwise returns value. Used to recreate keywords saved in DB as strings.
Takes value, possibly string, and if the first char is : transforms string into keyword. Otherwise returns value. Used to recreate keywords saved in DB as strings.
(real-collection? datum)
Clojure postwalk iterates over a map as collection of MapEntries. MapEntry is a collection, but we don't want to transform this collection into Java collection. For this reason, when we walk through data, we check for collection not being MapEntry, to avoid destroying maps.
Clojure postwalk iterates over a map as collection of MapEntries. MapEntry is a collection, but we don't want to transform this collection into Java collection. For this reason, when we walk through data, we check for collection not being MapEntry, to avoid destroying maps.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close