IDictionary - acadet/ludivine GitHub Wiki
IDictionary<K, V>
|> ICollection<KeyValuePair<K, V>>
Dictionary interface. K types keys and V values.
add(key : K, value : V) : voidAdds new key/value pair. Throws error if key is already existing.
Parameters
key Key
value Paired value
get(key : K) : VGets value from provided key. Throws error if key does not exist.
key Key
getSize() : numberReturns size of dictionary.
hasKey(key : K) : booleanTests if key exists.
Parameters
key Key
remove(key : K) : voidRemoves pair from dictionary. Throws error if key does not exist.
Parameters
key Key
removeIf(func : Func<KeyValuePair<K, V>, boolean>) : voidRemoves each pair matching provided condition.
Parameters
func Returns true if element has to be removed