ClojureDocs

导航

命名空间

into-array

clojure.core

自 1.0 起提供 ()
  • (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.