Write a function df :: Int -> Int that returns
the double factorial of a natural number. The double factorial of
is denoted
and is
.
Write a function sumd :: Int -> Int that returns
the sum of the digits of a natural number.
Write a function dup :: [Int] -> [Int] that
duplicates each element in a list.
Write a function pal :: String -> Bool that tells
if a string is a palindrome, ie, if it is equal to its reverse.
Write a function
apply2 :: (a -> a) -> a -> a that applies a
function twice to some parameter.
Author: Jordi Petit
Generation: 2026-02-03T17:01:44.383Z
© Jutge.org, 2006–2026.
https://jutge.org