Skip to main content

into-array

functionv1.0

clojure.core/into-array

Available in:BBCLJCLJS
(into-array [aseq] [type aseq])
Returns an array with components set to the values in aseq. The array's component type is type if provided, or the type of the first value in aseq if present, or Object. All values in aseq must be compatible with the component type. Class objects for the primitive types can be obtained using, e.g., Integer/TYPE.

No examples yet. Be the first to add one!