export function map( set: Set, predicate: (element: FromType) => ToType ): Set { return new Set(Array.from(set).map(predicate)); }