UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

15 lines (11 loc) 251 B
// ets_tracing: off import "../Operator/index.js" /** * `Hash[A]` provides a way to hash a value */ export interface Hash<A> { readonly hash: (x: A) => number } export function makeHash<A>(hash: (x: A) => number): Hash<A> { return { hash } }