Home Segments Index Top Previous Next

408: Mainline

You can work equally easily with either the front or the back of an ordered collection. To store an element at the back, you use the addLast: message; to retrieve an element from the back, you use the last message; to remove an element from the back, you use the removeLast method.