(definline doubles "Casts to double[]" {:added "1.0"} [xs] `(. clojure.lang.Numbers doubles ~xs))
Anybody know what this is used for? All I could find is that you can cast an existing double-array to another double-array???
user=> (doubles [1 2 3 4 5]) java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to [D (NO_SOURCE_FILE:0) user=> (doubles (int-array [2 3 2])) java.lang.ClassCastException: [I cannot be cast to [D (NO_SOURCE_FILE:0) user=> (doubles (float-array [2 3 2])) java.lang.ClassCastException: [F cannot be cast to [D (NO_SOURCE_FILE:0) user=> (doubles (double-array [2 3 2])) # user=> (type (double-array [2 3 2])) [D user=> (type (doubles (double-array [2 3 2]))) [D user=>
Comments top
1 comment(s) for doubles.
Anybody know what this is used for? All I could find is that you can cast an existing double-array to another double-array???