NEWTON
Asked
4 months ago
10
views
0
For an array in Cairo, since there is no inherent structure, removing an item from an array means all of the other items after the removed item must be moved, since this is on the blockchain that can be extremely costly. What is the best way to handle this? Should the removed item just be replaced with an empty placeholder? What is the right way to handle this?
ㅤ This question was originally posted on Triality
There are no answers for this question yet
Want to give yours?
How large can addresses be in Cairo?
Are there situations in which we prefer declaring variables as `local` vs `tempvar`?
Why should I run a Pathfinder node?
How to check if a contract has been deployed at a certain address in cairo?
Is Kakarot a Starkware project?
Is there anything wrong with the testnet?
Equivalent to Solidity's keccak256(abi.encodePacked())?