I am working on Project Euler question 4, and need to find the palindrome of the product of 2 3 digit numbers, so I came up with:
palindrome = [ x*y | x <- [100..999], y <- [100..999], reverse [x*y] == [x*y]]
Why doesn't this work and how can I make it work? I suspect I need to somehow get the answer into a list so that it be reversed and checked if it is a palindrome.