You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
499 B
499 B
Exercise: Apply Yourself
myConcat :: [Char] -> [Char] -> [Char]. The second argument to(++)is a[Char]and so all types need to be[Char].myMult :: Fractional a => a -> a. The(/)requires theFractionaltypeclass (which is a subset of theNumclass.)myTake :: Int -> [Char] -> [Char]. Same reason a (1)myCom :: Int -> Bool. Second argument of(<)isInt, which inherits theOrdtypeclass so we no longer need to specify it.myAlph :: Char -> Bool.