def permutations(values):
    """Permutes the provided list

    Args:
        values (list): List to permute values within

    Returns:
        list: List of permutations of values
    """

    if len(values) == 1:
        return values[0]
    ret = []
    i = 0
    for item in values:
        values.remove(item)
        perms = permutations(values)
        for perm in perms:
            ret.append(item + perm)
        values.insert(i, item)
        i += 1
    return ret