from typing import Callable


def star(f: Callable) -> Callable:
    """ Converts a function of multiple arguments, to a function taking a tuple.
        Useful for e.g. min(list_of_tuples, key=star(lambda a,b: ....)). """
    return lambda args: f(*args)