When using im::Vector - Rust to represent a Stack, is there a convention for top = front or top = back?
It doesn't really matter, but I would tend to use push_back
and pop_back
, because those match the behavior I'm accustomed to from the standard library’s Vec::push
and Vec::pop
.
2 Likes
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.