Skip to content

$hash

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).

string

read-only
$hash.string(value: string, initial: int) -> int

Generate the hash of a string.

ParameterTypeMeaning
valuestringThe string to hash.
initialintOptional seed value for the hash.

Returns int: The hash of the string.