I am trying to access a list within a list using recursion. For example : you have as an input [[1,2], [2, 3]] and I trying to access every element within that input as taking the head [1,2] and now I would like to access 1 and after 2.
What I have tried:
I have tried the following:
function_name input
| [x:xs] <- head input, condition (x > 2) = function_name (tail input)
| otherwise = function_name(tail input)
Any other tips or models to solve this?