I have one theoretic question. I know that mapping in Solidity is representation of hash tables, where we have hashed key and value stored to this key.
Also arrays in EVM stores values in keccak256(index)
slots in EVM memory.
Here my questions is:
- Can we say that array is hash table, but with keys as indexes 0,1,2..
- If yes, can we get collision if store different values in
0
index of array and in mapping by key0
?