diff options
author | chriseth <chris@ethereum.org> | 2018-05-31 00:32:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-31 00:32:08 +0800 |
commit | 5a73044fa77c0572a3a5375b0c557313e8c600a7 (patch) | |
tree | b73bfd0559cc70eea3aa022a375bfe273e68445d /docs | |
parent | a77531d245d24d82e11858fb99ebfc9ec53b5d38 (diff) | |
parent | fea0d116f7d95e9a39f0c80c5156cb3656b03ce0 (diff) | |
download | dexon-solidity-5a73044fa77c0572a3a5375b0c557313e8c600a7.tar dexon-solidity-5a73044fa77c0572a3a5375b0c557313e8c600a7.tar.gz dexon-solidity-5a73044fa77c0572a3a5375b0c557313e8c600a7.tar.bz2 dexon-solidity-5a73044fa77c0572a3a5375b0c557313e8c600a7.tar.lz dexon-solidity-5a73044fa77c0572a3a5375b0c557313e8c600a7.tar.xz dexon-solidity-5a73044fa77c0572a3a5375b0c557313e8c600a7.tar.zst dexon-solidity-5a73044fa77c0572a3a5375b0c557313e8c600a7.zip |
Merge pull request #3743 from ethereum/popStorageArray
pop() for storage arrays
Diffstat (limited to 'docs')
-rw-r--r-- | docs/types.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst index 794a70de..b3631f74 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -682,7 +682,7 @@ possible: It is planned to remove this restriction in the future but currently creates some complications because of how arrays are passed in the ABI. -.. index:: ! array;length, length, push, !array;push +.. index:: ! array;length, length, push, pop, !array;push, !array;pop Members ^^^^^^^ @@ -693,6 +693,8 @@ Members ``.length`` member. This does not happen automatically when attempting to access elements outside the current length. The size of memory arrays is fixed (but dynamic, i.e. it can depend on runtime parameters) once they are created. **push**: Dynamic storage arrays and ``bytes`` (not ``string``) have a member function called ``push`` that can be used to append an element at the end of the array. The function returns the new length. +**pop**: + Dynamic storage arrays and ``bytes`` (not ``string``) have a member function called ``pop`` that can be used to remove an element from the end of the array. .. warning:: It is not yet possible to use arrays of arrays in external functions. |