(arr: Iterable<A>)
| 510 | * @since 2.0.0 |
| 511 | */ |
| 512 | export const array = <A>(arr: Iterable<A>): number => { |
| 513 | let h = 6151 |
| 514 | for (const element of arr) { |
| 515 | h = combineDataFirst(h, hash(element)) |
| 516 | } |
| 517 | return optimize(h) |
| 518 | } |
| 519 | |
| 520 | const hashIndexed = (arr: ArrayLike<unknown>): number => { |
| 521 | let h = 6151 |