import { ForEachFn } from '@collectable/core' ; import { forEach as _forEach } from '@collectable/map' ; import { HashSetStructure } from '../internals' ; function forEachMap < T > ( pred ) { return function ( value , key , index ) { return pred ( key , index ) ; } ; } export function forEach < T > ( f , set ) { _forEach ( forEachMap ( f ) , set . _map ) ; return set ; }