myReverse' :: [a] -> [a]
myReverse' list = myReverse'' list []
    where
        myReverse'' [] reverse = reverse
        myReverse'' (x:xs) reverse = myReverse'' xs (x:reverse)

-- Palindrome or not
-- A palindrome can be read forward or backward; e.g. (x a m a x).
myReverse' :: [a] -> [a]
myReverse' list = myReverse'' list []
    where
        myReverse'' [] reverse = reverse
        myReverse'' (x:xs) reverse = myReverse'' xs (x:reverse)

-- Palindrome or not
-- A palindrome can be read forward or backward; e.g. (x a m a x).
myReverse' list = myReverse'' list []
    where
        myReverse'' [] reverse = reverse
        myReverse'' (x:xs) reverse = myReverse'' xs (x:reverse)

-- Palindrome or not
-- A palindrome can be read forward or backward; e.g. (x a m a x).