I'm working on an exercise that requires me to compare the first and second element of a list, and then I need to make a recursion call on the tail.
If I use h::t then I can't access the second element, while using first::second::t makes it harder to access the original tail.
Is there any syntax I can use to match both at the same time?