PriorityQueue

NAME

PriorityQueue

VERSION

A<$VERSION>

SYNOPSIS

use PriorityQueue;

my $p = PriorityQueue.new;

for 1 .. 100 { $p.push: 100.rand.floor; }

# should return in increasing order while $p.shift -> $e { say $e; }

# if you want a max heap, or just a different ordering: $p = PriorityQueue.new(:cmp(&infix:ยซ>=ยป));

AUTHOR

Rob Hoelz <rob AT-SIGN hoelz.ro>

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.