function | since v1.10.844 | Edit |
(--destructure-map gmap)
(defn --destructure-map [gmap]
(if (implements? ISeq gmap)
(if (next gmap)
(.createAsIfByAssoc PersistentArrayMap (to-array gmap))
(if (seq gmap)
(first gmap)
(.-EMPTY PersistentArrayMap)))
gmap))