Accessing
18Returns the number of items in the collection. (count nil) returns 0. Also works on strings, arrays, and Java Collect...
functionclojure.core
Returns an empty collection of the same category as coll, or nil
functionclojure.core
Returns the map entry for key, or nil if key not present.
functionclojure.core
Returns the first item in the collection. Calls seq on its argument. If coll is nil, returns nil.
functionclojure.core
Returns the value mapped to key, not-found or nil if key not present in associative collection, set, string, array, or...
functionclojure.core
Returns the value in a nested associative structure, where ks is a sequence of keys. Returns nil if the key is not p...
functionclojure.core
Returns the key of the map entry.
functionclojure.core
Returns a sequence of the map's keys, in the same order as (seq map).
functionclojure.core
Return the last item in coll, in linear time
functionclojure.core
Returns a seq of the items after the first. Calls seq on its argument. If there are no more items, returns nil.
functionclojure.core
Returns the value at the index. get returns nil if index out of bounds, nth throws an exception unless not-found is su...
functionclojure.core
For a list or queue, same as first, for a vector, same as, but much more efficient than, last. If the collection is em...
functionclojure.core
Returns a possibly empty seq of the items after the first. Calls seq on its argument.
functionclojure.core
Same as (first (next x))
functionclojure.core
Returns a seq on the collection. If the collection is empty, returns nil. (seq nil) returns nil. seq also works on ...
functionclojure.core
Coerces coll to a (possibly empty) sequence, if it is not already one. Will not force a lazy seq. (sequence nil) yield...
functionclojure.core
Returns the value in the map entry.
functionclojure.core
Returns a sequence of the map's values, in the same order as (seq map).
functionclojure.core