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