Ad
Code
Diff
  • module AddNumbers where
    
    add_arr :: (Foldable t, Num a) => t a -> a
    add_arr = sum
    • module AddNumbers where
    • add_arr x = sum x
    • add_arr :: (Foldable t, Num a) => t a -> a
    • add_arr = sum
Code
Diff
  • module AreThereThree where
    
    solution :: Int -> Bool
    solution = elem '3' . show
    • module AreThereThree where
    • import Control.Monad (liftM2)
    • solution :: Int -> Bool
    • solution = (elem '3') . show
    • solution = elem '3' . show