The Stack module introduces a vectorized stack type into which you can place any type of data. Great if you need to store data of various different types, or all of one type; this module can handle ...
Stack は LIFO (Last In, First Out) 方式のデータ構造です。 最後に入れた要素が最初に取り出されます。 push(4) ↓ ┌─────────┐ │ 4 │ ← top (最後に追加、最初に取り出し) ├───── ...