Reference
std/hash
std/hash
Hashes of Hashable values and the FNV-1a hash of text.
narra
import * as Hash from "std/hash"
The guide teaches it in chapter 2, Values and types.
This page is generated by scripts/std/generate.nra from narrac query --json interface std/hash. Do not edit it.
Functions
of
narra
export function of<T: Hashable>(value: T): int
Effects: none.
fnv1a
narra
export function fnv1a(text: string): u64
Effects: none.