Advertisement
Guest User

function from hashmap.py

a guest
Mar 31st, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. def hash_key(aMap, key):
  2.     """Given a key this will create a number and then convert it to
  3.    an index for the aMap's buckets."""
  4.     return hash(key) % len(aMap)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement