pub fn get(self: *const Self, key: Key) ?Value
Gets the value associated with a key. If the key is not in the map, returns null.
self: *const Self
key: Key
515 516 517 518
pub fn get(self: *const Self, key: Key) ?Value { const index = Indexer.indexOf(key); return if (self.bits.isSet(index)) self.values[index] else null; }
Gets the value associated with a key. If the key is not in the map, returns null.