Skip to content

clojure.core/into-array

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 3 Runnable: 0
([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.

Examples

by ysph on . May have evaluation errors.
by klauern on . May have evaluation errors.
by Phalphalak on . May have evaluation errors.

See also


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