import math


def distance_set(coord, curset):
    """
    Return the distance from a coordinate to any item in the set
    """
    min_dist = math.inf
    for c in curset:
        min_dist = min(coord.euclidean_distance(c), min_dist)

    return min_dist