My problem is to build a function that given a person and an amount of hours(Integer) it adds "erp" at the start of the name, but the "r" must multiply the amount of hours.
My function must be of the type:
drink :: Integer -> Client -> Client
here it´s an example:
drink 5 (Aperson name _ _) = "errrrrpname"
I know how to do the concatenation but i dont know how to multiply the "r" the amount of time.
Stringsand an integernand gives back theStringthat issmultiplied byn(without dealing with theClientstuff)? I would start there.replicate.