def dict_lookup(dict):
    """
    Lookup a value in dictionary
    :param dict: Dictionary to use
    :return: Lambda-function to perform the lookup in the dictionary
    """
    return lambda x: dict[x]