import { commit , modify } from '@collectable/core' ; import { HashMap } from '@collectable/map' ; import { HashSetStructure } from '../internals' ; export function remove < T > ( value , set ) { if ( ! HashMap . has ( value , set . _map ) ) return set ; set = modify ( set ) ; HashMap . remove ( value , set . _map ) ; return commit ( set ) ; }