What to do if you have a Non Exhaustive pattern match

Probably just do nothing. If you get two nodes, rotate them and return the rotated nodes. If you get anything else just return it as is - the identity function.

Maybe need to see some code to give a better recomendation.

2 Likes