Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

There may be issues with this suggestion about concrete types of return values, or doc strings that promise things that you want to preserve that cannot be preserved with this suggested change.

However, if those issues are not show stoppers, changing clojure.core/reverse to check if its arg is Reversible, and if so, return rseq, else do as reverse does today, could be faster in many situations.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1748 (reported by jafingerhut)
...