Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@ A dead stupid stack implementation, but one fully working :)
[![Pharo version](https://img.shields.io/badge/Pharo-8.0-%23aac9ff.svg)](https://pharo.org/download)
<!-- [![Build status](https://ci.appveyor.com/api/projects/status/1wdnjvmlxfbml8qo?svg=true)](https://ci.appveyor.com/project/olekscode/dataframe) -->

## Example

```
| aStack |
aStack := CTStack new.
aStack push: 'a'.
aStack size >>> 1.
aStack push: 'b'.
aStack size >>> 2.
aStack top >>> 'b'.
aStack size >>> 2.
aStack pop >>> 'b'.
aStack size >>> 1.
aStack pop >>> 'a'.
aStack size >>> 0.
```

## Loading
The following script installs Containers-Stack in Pharo.

Expand All @@ -21,6 +38,8 @@ Metacello new

## If you want to depend on it

Add the following code to your Metacello baseline or configuration

```smalltalk
spec
baseline: 'ContainersStack'
Expand Down