Closed novusnota closed 6 months ago
Left to do:
And the same for arrPop()
function just introduces.
@anton-trunov It seems like the gas usage with packing the map into structure with methods (with one persistent state variable array: Array
, see below) is the same as in the previous example (with using two: arr
and arrLength
). Or this is the case for the Sandbox.
Added that example to the Cookbook + added a note discussing potential issues of the current one.
Ready for review. Added more examples and refined previous ones — Map emulating: Arrays, Stacks, CircularBuffers.
Added or refined:
.get()
.set()
.asCell()
And everything with examples of Tact code, except for contract sharding, which will be added later as per #155.
As a bonus, added two neat examples of using maps as arrays to Cookbook (with handy comments): one from @howardpen9 :fire:, another from tact-by-example and @talkol :fire:
Closes #135 Closes #133