def single_index_function(index):
    """Creates a function that returns an index for every single wavelength

    Arg:
        index(complex): the index of refraction to be returned

    Returns:
        callable: returns the complex index for an argument of any float
    """
    get_index = lambda wavelengths: index
    return get_index