Method: Algorithmable::DataStructs::OrderedSymbolTable#initialize

Defined in:
lib/algorithmable/data_structs/ordered_symbol_table.rb

#initialize(key_type, value_type) ⇒ OrderedSymbolTable

Returns a new instance of OrderedSymbolTable.



8
9
10
11
# File 'lib/algorithmable/data_structs/ordered_symbol_table.rb', line 8

def initialize(key_type, value_type)
  search_strategy_factory = Object.new.extend Algorithmable::Searches
  @imp = search_strategy_factory.new_binary_search_tree(key_type, value_type)
end