dictionary.rl

Class Entry

Fields

  • Bool occupied

  • Int hash

  • KeyType key

  • ValueType value

Class Dict

Fields

Methods

  • Function: init()

  • Function: insert(KeyType key, ValueType value)  -> Bool

  • Function: get(KeyType key)  -> ValueType

  • Function: contains(KeyType key)  -> Bool

  • Function: remove(KeyType key)  -> Bool

  • Function: keys()  -> Vector<KeyType>

  • Function: values()  -> Vector<ValueType>

  • Function: empty()  -> Bool

 returns true if the
 size of the dictionary is equal
 to zero
  • Function: size()  -> Int

 returns true if the
 size of the dictionary is equal
 to zero
  • Function: clear()

 erases all the elements
 of the dictionary
  • Function: drop()