/**
 * Given two sets, return a new set containing the common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing the common elements between set1 and set2.
 */
fun commonElements(set1: Set<*>, set2: Set<*>): Set<*> {

    return set1.intersect(set2)
}
/**
 * Given two sets, return a new set containing the common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing the common elements between set1 and set2.
 */
fun commonElements(set1: Set<*>, set2: Set<*>): Set<*> {
/**
 * Given two sets, return a new set containing the common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return A new set containing the common elements between set1 and set2.
 */
fun commonElements(set1: Set<*>, set2: Set<*>): Set<*> {

    return set1.intersect(set2)
}