Readonly
hash
hash: ((self) => ((hasher) => Readonly<{
state: (() => bigint);
write: ((bytes) => Readonly<({ state: () => bigint; write: (bytes: ArrayBuffer) => Readonly<...>; })>);
}>))
Type declaration
- (self): ((hasher) => Readonly<{
state: (() => bigint);
write: ((bytes) => Readonly<({ state: () => bigint; write: (bytes: ArrayBuffer) => Readonly<...>; })>);
}>) Returns ((hasher) => Readonly<{
state: (() => bigint);
write: ((bytes) => Readonly<({ state: () => bigint; write: (bytes: ArrayBuffer) => Readonly<...>; })>);
}>)
- (hasher): Readonly<{
state: (() => bigint);
write: ((bytes) => Readonly<({ state: () => bigint; write: (bytes: ArrayBuffer) => Readonly<...>; })>);
}> Parameters
hasher: Readonly<{
state: (() => bigint);
write: ((bytes) => Readonly<({ state: () => bigint; write: (bytes: ArrayBuffer) => Readonly<...>; })>);
}>
Returns Readonly<{
state: (() => bigint);
write: ((bytes) => Readonly<({ state: () => bigint; write: (bytes: ArrayBuffer) => Readonly<...>; })>);
}>
All instances of
Eq
must satisfy the following conditions:Eq<A, B>
always equals toEq<B, A>
.Eq<A, B>
andEq<B, C>
always impliesEq<A, C>
.Eq<A, A>
always returnstrue
.For example, the comparator below cannot implement
Eq
because that does not satisfy reflexive due toNaN === NaN
always be false.