You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#4232 implements this by the most straight forward approach of cloning the Vec and pushing to it.
This technically works, but if anyone pushes inside a loop, it's O(n^2). Do we really want to introduce this? Seems like a big foot-gun.
As an alternative, I propose persistent data structures since they fit better with immutability. Clojure makes good use of hash array mapped tries to provide a persistent interface, while mutating internally for better performance.
Describe the bug
I would like to be able to append to a list -- something like:
Steps to Reproduce
n/a
Expected Behavior
n/a
Screenshots and Recordings
No response
Desktop OS
Debian
Browser
Chrome
Version
main
Additional Context
No response
The text was updated successfully, but these errors were encountered: