ClojureDocs

Nav

Namespaces

into-array

clojure.core

Available since 1.0 (source)
  • (into-array aseq)
  • (into-array 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.