.. (לתיקייה המכילה) | ||
In question 7, can we just send two real numbers and two tags, and "pretend" that those numbers are ints if the tags say so? | |
No, this solution only works because each real number has an easy convertion to an int. Your function must be able to receive values that are really of type int. |
Do we have to add usage examples for the functions in question 6? | |
Yes. |
We don't understand exactly what type of input/output the function in question 7 should receive/return. | |
This is an open question, so you can decide what the signature of the function will be. The "mechanism" that the question mentions simply means that you should decide on a convention of how users should call the "add" function, and what its output should look like. Note that users of the function are aware of this convention - so they know how the function expects to receive its input. |
Can we use the 'datatype' keyword in question 7? | |
No. As stated in the question, you are only allowed to use ML-related material that was taught in the tutorials. |