Skip to main content

Accessing

26
  • count

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

  • empty

    Returns an empty collection of the same category as coll, or nil

  • find

    Returns the map entry for key, or nil if key not present.

  • find

    Return `zloc` located to the first node satisfying predicate `p?` else nil. Search starts at the current node and con...

  • first

    Returns the first item in the collection. Calls seq on its argument. If coll is nil, returns nil.

  • get

    Convenience wrapper for `request` with method `:get`

  • get

    Returns the value mapped to key, not-found or nil if key not present in associative collection, set, string, array, or...

  • get

    Issues an async HTTP GET request. See `request` for details.

  • get

    Returns `zloc` located to map key node's sexpr value matching `k` else `nil`. `k` should be: - a key for maps - a...

  • get-in

    Returns the value in a nested associative structure, where ks is a sequence of keys. Returns nil if the key is not p...

  • key

    Returns the key of the map entry.

  • keys

    Returns a sequence of the map's keys, in the same order as (seq map).

  • last

    Return the last item in coll, in linear time

  • next

    Returns a seq of the items after the first. Calls seq on its argument. If there are no more items, returns nil.

  • next

    Moves to the next loc in the hierarchy, depth-first. When reaching the end, returns a distinguished loc detectable via...

  • next

    Return zipper with location moved to the next depth-first non-whitespace/non-comment node in `zloc`. End can be detec...

  • nth

    Returns the value at the index. get returns nil if index out of bounds, nth throws an exception unless not-found is su...

  • peek

    For a list or queue, same as first, for a vector, same as, but much more efficient than, last. If the collection is em...

  • rest

    Returns a possibly empty seq of the items after the first. Calls seq on its argument.

  • second

    Same as (first (next x))

  • seq

    Returns a seq on the collection. If the collection is empty, returns nil. (seq nil) returns nil. seq also works on ...

  • seq

    Create a lazy-seq of all of the (unique) nodes in a shrink-tree. This assumes that two nodes with the same value have ...

  • sequence

    Coerces coll to a (possibly empty) sequence, if it is not already one. Will not force a lazy seq. (sequence nil) yield...

  • val

    Returns the value in the map entry.

  • vals

    Returns a sequence of the map's values, in the same order as (seq map).