Description Usage Arguments Details Value Note Author(s) See Also Examples
clear removes all key-values from a hash.
1 2 3 4 |
x |
A |
clear removes (rm) the key-value pairs on the hash.
For large hashes it might be faster to reinitialize the hash, though this
might cause memory leaks.
None. Method clear exists entirely for its side effects.
clear should be called prior to removing a hash. This ensures
that the memory from the environment is freed.
Christopher Brown
del() to remove specific key-values from the hash.
hash() to create a new hash
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.