From 86e6aa2d0f5e246606265e41a756fe9eb2c751fa Mon Sep 17 00:00:00 2001 From: SmiljanaKnezev Date: Fri, 17 May 2019 18:41:32 +0200 Subject: [PATCH 1/4] improve depend on explanation --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2da30a2..3279873 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ Metacello new ## If you want to depend on it +Add the following code to your Metacello baseline or configuration + ```smalltalk spec baseline: 'ContainersStack' From 0b17755fa5e5b7a118e4e1bd51a58dd67666ab6d Mon Sep 17 00:00:00 2001 From: SmiljanaKnezev Date: Thu, 30 May 2019 21:51:52 +0200 Subject: [PATCH 2/4] Update README.md --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 3279873..e3e46d2 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,21 @@ 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) +## 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. From 615a2a154f1f352a4a09ed3c5b3b0cb6f66d7331 Mon Sep 17 00:00:00 2001 From: SmiljanaKnezev Date: Thu, 30 May 2019 21:54:30 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e3e46d2..6fe786f 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,8 @@ A dead stupid stack implementation, but one fully working :) aStack pop >>> 'b'. aStack size >>> 1. aStack pop >>> 'a'. - aStack size >>> 0. ``` + aStack size >>> 0. + ``` ## Loading The following script installs Containers-Stack in Pharo. From 5fb01ca26222766abbe4d22c6199683d1f9e936f Mon Sep 17 00:00:00 2001 From: SmiljanaKnezev Date: Thu, 30 May 2019 21:55:07 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fe786f..daf062e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ A dead stupid stack implementation, but one fully working :) ## Example -``` | aStack | +``` +| aStack | aStack := CTStack new. aStack push: 'a'. aStack size >>> 1.