exercises/ex07/hash.c
Value *map_lookup(Map *map, Hashable *key)
{

    int hash_idx = key->hash(key) % map->n;
    return list_lookup(map->lists[hash_idx], key);

}
/* Looks up a key and returns the corresponding value, or NULL. */
Looks up a key and returns the corresponding value, or NULL.
Looks up a key and returns the corresponding value or NULL .
Value *map_lookup(Map *map, Hashable *key)
{
    int hash_idx = key->hash(key) % map->n;
    return list_lookup(map->lists[hash_idx], key);
}
Value * map_lookup ( Map * map , Hashable * key ) { int hash_idx = key -> hash ( key ) % map -> n ; return list_lookup ( map -> lists [ hash_idx ] , key ) ; }
Looks up a key and returns the corresponding value, or NULL.
Looks up a key and returns the corresponding value or NULL .