(seed: number, iter: Iterable<A>, f: (el: A) => number)
| 467 | export const structure = <A extends object>(o: A) => structureKeys(o, getAllObjectKeys(o)) |
| 468 | |
| 469 | const hashUnordered = <A>(seed: number, iter: Iterable<A>, f: (el: A) => number): number => { |
| 470 | let h = seed |
| 471 | for (const element of iter) { |
| 472 | h ^= f(element) |
| 473 | } |
| 474 | return optimize(h) |
| 475 | } |
| 476 | |
| 477 | /** |
| 478 | * Computes a hash value for an iterable by hashing all of its elements. |
no test coverage detected