Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

priority_queue

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

priority_queue

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= 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

FAQs

Package last updated on 25 Nov 2009

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc