Create a sublist from a list given an index and a number of elements. Prolog
问题 I am trying to solve a simple prolog question but I am not able to solve it. From a list a need to create a sublist given the index I and then from I the next elements given as N. If the index is greater than the list lenght I will get the sublist empty. If N (number of elements) is greater than the rest of elements in the list I will get all the elements from I until the end. Here, I got one part of the assignment, I can get from the index I, the next elements N. Now I ask about the other