Skip to content

clojure.core/count

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 5 Runnable: 4
([coll])

Returns the number of items in the collection. (count nil) returns 0. Also works on strings, arrays, and Java Collections and Maps

Examples

by MrHus on
by rquinn on
by reborg on . May have evaluation errors.
by JeniferDalcin on
by aanacarolina on

See also


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