Explorer

core.eval-value-hash

description
The hash of list_hash_index in the evaluator (the same as the runtime's string_hash): h = h * 33 + byte modulo 2^32 over the UTF-8 bytes of a string value, 0 for other values
type
Fn(value: @core.value) -> Number
expression
fn(value$0) =>
  match $0 {
    #string(text$1) =>
      @core.eval-bytes-hash(bytes: @core.string-to-bytes(value: $1), index: 0, hash: 0),
    _ =>
      0
  }
visibility
public
core.eval-value-hash (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: l0RtuELIjbAnog_pahrY2-UfuKlBfzev4LnqIUuvKj8
content hash: QgXcz2KX1NCxQrMAjFmWIJzdYzKZ7Q4aLWxNIkfDaI8