For example: I want to select elements from a list {1,4,3,2,5} that are bigger than its previous element. {4,5} satisfies the criteria: 4 is greater than 1 and 5 is greater than 2(Ignore the first element).
In general, Is there any simple way to select elements from a list that are satisfied a criteria which need to compare with other elements in the list?
First /@ Split[{1, 4, 3, 2, 5}, Greater] // Rest
? $\endgroup$