export function concatToSet < T > ( set , array ) { for ( const element of array ) { set . add ( element ) ; } } export function removeAllFromSet < T > ( set , array ) { for ( const element of array ) { set . delete ( element ) ; } }