name | see also | |||||
---|---|---|---|---|---|---|
cljs.core/last |
|
Returns the last item in coll
in linear time.
peek
is much faster than last
for a vector.
(last [1 2 3])
;;=> 3
(last [1 2])
;;=> 2
(last [1])
;;=> 1
(last [])
;;=> nil
name | see also | |||||
---|---|---|---|---|---|---|
cljs.core/last |
|
Returns the last item in coll
in linear time.
peek
is much faster than last
for a vector.
(last [1 2 3])
;;=> 3
(last [1 2])
;;=> 2
(last [1])
;;=> 1
(last [])
;;=> nil