帖子
分享您的知识。
YJS94
Mar 19, 2025
专家问答
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
分享
评论
答案
1mssoni100
Mar 20 2025, 11:05Table``vector
Move 与 Solidity 映射非常相似,而不是. 以下是一些关键区别:
-vector
Move 中的 s 严格使用整数进行键控,而 Table
s 可以使用任何类型作为密钥.
-vector
s 有大小限制,而 Table
s 可以存储无限数量的元素.
-对 vector
s 进行迭代非常简单;但是,Table
s 不支持类似于映射的直接迭代,尽管您可以将其LinkedTable
用于迭代目的.
1
评论
你知道答案吗?
请登录并分享。
Move is an executable bytecode language used to implement custom transactions and smart contracts.
148帖子231答案

奖励活动五月
- 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