We're now moving on to stacks
!
They are a container of objects that are inserted and removed according to the first-in, last-out principle. Stacks are a little more complex than lists, but they provide some useful additional functionality. The first element added to the stack is the last element removed, which makes them more like a traditional stack of plates in a cafe or diner. They're used to store data that might be added and removed many times, like undo information for a text editor, browser history or an undo command.
How do I use this section?