ClojureDocs

Nav

Namespaces

alength

clojure.core

Available since 1.0 (source)
  • (alength array)
Returns the length of the Java array. Works on arrays of all
types.
2 Examples
user=> (def my-array (into-array Integer/TYPE [1 2 3]))
#'user/my-array

user=> (alength my-array)
3
2D simple array example
user=> (def a (to-array-2d [[1 2] [3 4 5] [1]]))
#'user/a
user=> (alength a)
3
See Also

Returns an array with components set to the values in aseq. The array's component type is type if ...

Added by tentamen
0 Notes
No notes for alength