im::Vector as stack, top = front or back?

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