We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac11735 commit 42bb870Copy full SHA for 42bb870
src/main/cljs/cljs/core.cljs
@@ -12322,6 +12322,12 @@ reduces them without incurring seq initialization"
12322
12323
(set! (. Vector -fromArray) (fn [xs] (Vector. nil xs nil)))
12324
12325
+(defn simple-vector
12326
+ [& args]
12327
+ (if (and (instance? IndexedSeq args) (zero? (.-i args)))
12328
+ (.fromArray Vector (.-arr args) (not (array? (.-arr args))))
12329
+ (vec args)))
12330
+
12331
; The keys field is an array of all keys of this map, in no particular
12332
; order. Any string, keyword, or symbol key is used as a property name
12333
; to store the value in strobj. If a key is assoc'ed when that same
0 commit comments