cmc-csci040
cmc-csci040 copied to clipboard
lab first_three typo?
I think there might be a typo in the description of the first_three function in the lab, it has the same instructions as the last_three function (i'm assuming we just return the first three numbers of xs, but I wanted to double check)
You're correct. The test cases for the function are correct, but the English description has a typo. The important part here is to pass the test cases.
(This is an accidental lesson about why we have test cases... the test cases are always guaranteed to be correct for code because they can be machine checked. The English descriptions, however, are not machine checked, and so they often have errors.)