Difference between revisions of "Hash"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | <c>hash</c> returns an integer that is "relatively unique" to the given value.In the case of strings, the hash is case-sensitive. In the case | + | <c>hash</c> returns an integer that is "relatively unique" to the given value. In the case of strings, the hash is case-sensitive. In the case |
of a list or map, the hash combines the hash values of all elements. | of a list or map, the hash combines the hash values of all elements. | ||
Revision as of 17:23, 16 March 2020
hash returns an integer that is "relatively unique" to the given value. In the case of strings, the hash is case-sensitive. In the case
of a list or map, the hash combines the hash values of all elements.
Arguments
| Parameter Name | Default Value | Meaning |
|---|---|---|
| obj | any type | value to hash |
Usage Notes
Note that the value returned is platform-dependent, and may vary across different MiniScript implementations.