https://github.com/pharo-containers/containers-queue
https://github.com/pharo-containers/containers-queue
collections pharo
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pharo-containers/containers-queue
- Owner: pharo-containers
- Created: 2018-05-01T20:20:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-05-02T08:33:08.000Z (about 1 year ago)
- Last Synced: 2025-05-02T09:43:30.119Z (about 1 year ago)
- Topics: collections, pharo
- Language: Smalltalk
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Containers-Queue
[](https://travis-ci.com/pharo-containers/Containers-Queue)
[]()
[](https://pharo.org/download)
[](https://pharo.org/download)
A queue support FIFO (first in first out) behavior. Now it is a bit limited so feel free to enhance it.
This package is part of the Containers project: This project is to collect, clean,
test and document alternate collection datastructures. Each package is modular so that users
can only load the collection they need without 100 of related collections.
## Example
```smalltalk
CTEnvironmentTest >> testDequeue [
| queue |
queue := CTQueue new.
queue queue: 1.
queue queue: 2.
queue queue: 3.
self assert: queue dequeue equals: 1.
self assert: queue dequeue equals: 2.
]
```
## Loading
```smalltalk
Metacello new
baseline: 'ContainersQueue';
repository: 'github://pharo-containers/Containers-Queue/';
load.
```
## If you want to depend on it
```smalltalk
spec
baseline: 'ContainersQueue'
with: [ spec repository: 'github://pharo-containers/Containers-Queue/src' ].
```
----
The best way to predict the future is to do it!
Less talking more doing. stephane.ducasse@inria.fr