Function Types
triple :: Int -> Int
triple x = 3 * xghci> funList = [(+), (*)]
-- (+) and (*) are functions for addition and multiplication
ghci> :t funList
Num a => [a -> a -> a]Last updated
triple :: Int -> Int
triple x = 3 * xghci> funList = [(+), (*)]
-- (+) and (*) are functions for addition and multiplication
ghci> :t funList
Num a => [a -> a -> a]Last updated