def lagraHashtabell(atomlista): """Lagrar atomlistans element i en hashtabell""" antalElement = len(atomlista) hashtabell = Hashtable(antalElement) for atom in atomlista: hashtabell.store(atom.namn, atom) return hashtabell