MCPcopy Index your code
hub / github.com/Effect-TS/effect / array

Function array

packages/effect/src/Hash.ts:157–163  ·  view source on GitHub ↗
(arr: ReadonlyArray<A>)

Source from the content-addressed store, hash-verified

155 * @category hashing
156 */
157export const array = <A>(arr: ReadonlyArray<A>) => {
158 let h = 6151
159 for (let i = 0; i < arr.length; i++) {
160 h = pipe(h, combine(hash(arr[i])))
161 }
162 return optimize(h)
163}
164
165/**
166 * @since 2.0.0

Callers

nothing calls this directly

Calls 4

pipeFunction · 0.70
combineFunction · 0.70
hashFunction · 0.70
optimizeFunction · 0.70

Tested by

no test coverage detected