Post
Share your knowledge.
YJS94
Mar 19, 2025
Expert Q&A
Comparing Vectors in Move with Mappings in Solidity
I’m trying to understand the differences between vectors in Move and mappings in Solidity. I’ve heard that they differ in terms of key types and iteration capabilities, but I’m not clear on the specifics. Can someone break down the main differences?
- Move CLI
- Move
0
1
Share
Comments
Answers
1mssoni100
Mar 20 2025, 11:05A Move Table
is quite similar to a Solidity mapping rather than a vector
. Here are some key differences:
vector
s in Move are keyed strictly by integers, whileTable
s can use any type as a key.vector
s come with a size limit, whereasTable
s can store an unlimited number of elements.- Iterating over
vector
s is straightforward; however,Table
s do not support direct iteration similar to mappings, although you can useLinkedTable
for iteration purposes.
1
Comments
Do you know the answer?
Please log in and share it.
Move is an executable bytecode language used to implement custom transactions and smart contracts.
148Posts231Answers

Reward CampaignMay
- MiniBob... SUI+31
1
- 0xduckmove... SUI+27
2
- HaGiang... SUI+26
3
- ... SUIharry phan+21
- ... SUIMarlKey+20
- ... SUI
- ... SUIVens.sui+15
- ... SUICarlkawIy+12
- ... SUI
- ... SUIkryptoschain+10
Bounty Posts