ClojureDocs

导航

命名空间

make-array

clojure.core

自 1.0 起可用 (源代码)
  • (make-array 类型 长度)
  • (make-array 类型 维度 & 更多维度)
Creates and returns an array of instances of the specified class of
the specified dimension(s).  Note that a class object is required.
Class objects can be obtained by using their imported or
fully-qualified name.  Class objects for the primitive types can be
obtained using, e.g., Integer/TYPE.