D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
SyntaxSuggest
/
PriorityQueue
/
Filename :
cdesc-PriorityQueue.ri
back
Copy
U:RDoc::NormalClass[iI"PriorityQueue:ETI"!SyntaxSuggest::PriorityQueue;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"0Holds elements in a priority heap on insert;To:RDoc::Markup::BlankLine o; ;[I"0Instead of constantly calling `sort!`, put ;TI"1the element where it belongs the first time ;TI"around;T@o; ;[I" Example:;T@o:RDoc::Markup::Verbatim;[I"queue = PriorityQueue.new ;TI"queue << 33 ;TI"queue << 44 ;TI"queue << 1 ;TI" ;TI"puts queue.peek # => 44;T:@format0: @fileI")lib/syntax_suggest/priority_queue.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[[ I" elements;TI"R;T:publicFI")lib/syntax_suggest/priority_queue.rb;T[ [ [[I" class;T[[;[[I"new;T@'[:protected[ [:private[ [I" instance;T[[;[ [I"<<;T@'[I"empty?;T@'[I" exchange;T@'[I"length;T@'[I" peek;T@'[I"pop;T@'[I"sorted;T@'[I" to_a;T@'[;[ [;[[I"bubble_down;T@'[I"bubble_up;T@'[I"last_index;T@'[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@"I"SyntaxSuggest;TcRDoc::NormalModule