Would it make sense to add some convenience methods on VecDeque
in the std lib such that are available on Vec
? Couple examples that I would find useful would be first
and last
that are available on Vec
via deref to [T]
.
VecDeque
has VecDeque::front
and VecDeque::back
as equivalent methods. As to why they are named differently, I'm not sure, maybe it's the terminology more often used in the context of queues?
3 Likes
wow completely missed those, thanks!
1 Like
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.