Please code the following functions in SML, which consist ofproviding implementations:
perfect(x) : boolean – returnstrue if x is a perfect number.
amicable(x,y) : boolean – returnstrue if x and y are amicable numbers.
occr(nums,x) : int – returns the number oftimes that x occurs in nums (which is a list).
Expert Answer
An answer will be send to you shortly. . . . .