Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/core_ext/all.rb
Instance Method Summary collapse
- #to_fenwick_tree ⇒ Object (also: #to_fetree)
- #to_priority_queue ⇒ Object (also: #to_pq)
Instance Method Details
#to_fenwick_tree ⇒ Object Also known as: to_fetree
2 3 4 |
# File 'lib/core_ext/all.rb', line 2 def to_fenwick_tree FenwickTree.new(self) end |
#to_priority_queue ⇒ Object Also known as: to_pq
7 8 9 |
# File 'lib/core_ext/all.rb', line 7 def to_priority_queue PriorityQueue.new(self) end |