(repeat 10 1) returns LazySeq(list 1 2 3) returns a PersistentList
Obviously, there is no way to know how many elements are in a lazy sequence until this sequence is evaluated.
counted?returns true for any class that implements the interface clojure.lang.Counted.
source
share