clojure.core/doubles¶
Casts to double[]
Examples¶
Note by shockbob¶
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=>
See also¶
Content from the matching ClojureDocs page, with authors credited on each contribution.