def is_palindrome(values: list) -> bool:
    """
    Function to check if a list of values is a palindrome
    """
    begin, end = [0, len(values) - 1]
    while begin < end:
        if values[begin] != values[end]:
            return False
        begin, end = [begin + 1, end - 1]

    return True