Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.42 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.42 KB

Containers-Queue

Build Status License Pharo version Pharo version

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

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

Metacello new
   baseline: 'ContainersQueue';
   repository: 'github://pharo-containers/Containers-Queue/';
   load.

If you want to depend on it

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. [email protected]