ml4wp-exercises/02.03/answer.txt

4 lines
353 B
Plaintext

The first function requires type constraint because n could be an integer or a real
The second function does not require type constraint because Math.sin takes a real to a real, meaning that the compiler would be able to infer that this function takes a real to a real
The third function requires type constraint because k could be an integer or a real