string
read-only$hash.string(value: string, initial: int) -> intGenerate the hash of a string.
| Parameter | Type | Meaning |
|---|---|---|
value | string | The string to hash. |
initial | int | Optional seed value for the hash. |
Returns int: The hash of the string.
Hash strings into the integers the engine uses as names.
1 natives. Read-only natives only look things up; the rest change something. Parameter types use the language's names (Types).
$hash.string(value: string, initial: int) -> intGenerate the hash of a string.
| Parameter | Type | Meaning |
|---|---|---|
value | string | The string to hash. |
initial | int | Optional seed value for the hash. |
Returns int: The hash of the string.