Given any natural num n, the integral cube root of n is the greatest natural number i such that i3 ≤ n.
As an example, the integral cube root of 9 is 2, since 23 = 8 but 33 = 27. I'm trying to write a function func using list comprehension to get the integral cube root to for any natural number.
I got the list of cubes as cubes = [x ^ 3 | x <- [1..]]