Difference between revisions of "Hash"
Jump to navigation
Jump to search
(Created page with "<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 combi...") |
m (→Arguments) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <c>hash</c> | + | <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. | ||
Line 7: | Line 7: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | ! Parameter Name !! Default Value !! Meaning | + | ! Parameter Name !! Parameter Type !! Default Value !! Meaning |
|- | |- | ||
− | | ''obj'' || any | + | | ''obj'' || any || [[null]] || value to hash |
|} | |} | ||
Latest revision as of 20:55, 29 March 2021
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 | Parameter Type | Default Value | Meaning |
---|---|---|---|
obj | any | null | value to hash |
Usage Notes
Note that the value returned is platform-dependent, and may vary across different MiniScript implementations.