Rseq and reverse in clojure

What are the differences between rseq reverse in the examples given in the rseq ? The same result is obtained using reverse instead of rseq in the examples.

+5
source share
1 answer

rseq potentially faster (constant time) than reverse , but the catch is that it can only be used for vectors and sorted maps.

+4
source

All Articles