Method: Puppet::Graph::RbTreeMap#min_key
- Defined in:
- lib/puppet/graph/rb_tree_map.rb
#min_key ⇒ Object
Return the smallest key in the map.
Complexity: O(log n)
map = Containers::TreeMap.new
map.push("MA", "Massachusetts")
map.push("GA", "Georgia")
map.min_key #=> "GA"
98 99 100 |
# File 'lib/puppet/graph/rb_tree_map.rb', line 98 def min_key @root.nil? ? nil : min_recursive(@root).key end |