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