Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
Im trying to write a function called exp of type int -gt; int -gt; int. The application exp b e, for non-negative e, should return b^e.
Need help writing this function in Standard Ml. Im trying to write a function called exp of type int -> int -> int. The application exp b e, for non-negative e, should return b^e. For example, exo 3 2 should return 9. Note: exp must be implemented with compound and must not be recursive.
Here is the compound function, it takes in a value n, a function, and a value x. All it does is it applies the function to the value x n number of times.
fun