I tried to find the biggest non-floating number in existance. However, the following Haskell Code did not work in GHCi:
head (reverse [1..])
My pc is almost freezing when trying to compute the result. I tried to prove with mathematical induction that by taking the last element of a list of increasing numbers, i get the biggest number of them all.
head (reverse [1]) returns 1, the biggest number of this list head (reverse [1..100]) returns 100, which is also the biggest number.
I'm really confused here. What am i missing? Why is there an seemingly infinite loop? (I waited 5 minutes for a result) Are there any other methods i could try?