Could someone explain the behaviour of this little piece of code with the following input: [[1,2],[3,4]]
?
infiniteList ls = let v = ls ++ v
in concat v
The result is an infinite list but I don't realise why. I've understood that the trick is in:
ls ++ v
But how exactly work the let since we do not define the initial value for the variable v
?