Conversation
Why take-last used more complex implement? Just for better performence?
|
Hello! Clojure does not accept pull requests. You can find more information on the Clojure contribution process at https://clojure.org/community/contributing. Your implementation seems wasteful, even if you wanted to use |
|
Thanks. |
|
In this particular case, I believe that (count coll) will scan linearly through the coll one time, then (drop coll) will scan linearly through the coll a second time. The existing implementation appears like it will only do a linear scan through the coll one time. Performance is often a significant concern in the implementation of Clojure's core functions. |
|
Thanks, agree with you . |
Why take-last used more complex implement? Just for better performence?