Pop
Domain: Data Structures
🎯 Motivation
Pop is the operation of removing and returning the top item from a stack.
📋 Concrete Example
stack = [1, 2, 3]; stack.pop() returns 3 and the stack becomes [1, 2]. The top item is gone.
🔗 Analogy
Taking the top plate off the plate stack. You get that plate, and the one underneath becomes the new top.