Skip to content

clojure.core/make-array

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 2 Runnable: 0
([type len] [type dim & more-dims])

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.

Examples

by sergey on . May have evaluation errors.
by sergey on . May have evaluation errors.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.