GitXplorerGitXplorer
n

priority_queue

public
10 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
64e04a1677ccc6fd8b79996d1d43f67ad79f1089

Regenerated gemspec for version 0.2.0

committed 15 years ago
Unverified
7da0139086538e2c0f3d7780b9209b7b8af910e8

Version bump to 0.2.0

committed 15 years ago
Unverified
152166cb25f9f0d11f8380ff43f2fea8e0259d2c

add empty? method

committed 15 years ago
Unverified
6ac130a0f7aabab8338b5c663c33dbc48bb70b48

Regenerated gemspec for version 0.1.0

committed 15 years ago
Unverified
c11cea08f45fa73c45a1409d654b6d8c43e809cc

add gemspec

committed 15 years ago
Unverified
c8c6bfba99b3b630be85a7d52808459a3fddc1e5

add gemspec

committed 15 years ago

README

The README file for this repository.

= PriorityQueue

A very simple priority queue.

== Usage:

pq = PriorityQueue.new pq[5] << 'foo' pq[10] << 'unimportant foo' pq[1] << 'important foo'

pq.shift # => 'important foo' pq.shift # => 'foo' pq.shift # => 'unimportant foo' pq.shift # => nil

PriorityQueue is also enumerable.

== Install:

sudo gem install priority-queue -s http://gemcutter.org

== License:

Copyright (c) 2009 Justin Balthrop, Geni.com; Published under The MIT License, see License.txt