![]() |
.. (לתיקייה המכילה) | |
In question 2b, what should happen if I call "tail Nil"? | |
tail Nil should always throw an exception of type EmptySeq, since the empty sequence doesn't have a tail by definition. You shouldn't catch this exception, since calling "tail Nil" doesn't have the meaning of iterating over the sequence. |
In question 3c, can I assume that the template arguments will only be "int" or "double"? | |
No. As written in the question, these arguments may be of any type, as long as it's possible to manually cast these types to double. You may assume, however, that the third template argument will only be "int" or "double". |
Is sequencer = sequence? | |
No. You can read about sequencers in the lecture slides. |
Should the expression from question 5b be the same as the one from 5a? | |
No, it's a typo. You can write any expression you want in 5b. |