-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong instruction about makeTreasureChest in part 1 of the description in the learning exercise Treasure factory #596
Comments
I think it should read as follows ( "uniqueTreasures should take a List of Chest without specific conditions and return a List of Chest, with the duplicates removed, and the extra condition uniqueTreasure : () added." Does this wording make sense to you? |
Yes, but this would be a repetition of the instruction in part 3. I think that the offending statement can be simply removed. |
Part 1 of the instructions is just to edit the type signatures, not to implement the function. I agree its confusing though, especially as the function already has a type signature. The idea is to edit the type signature to add the phantom type conditions. How about something like this:
|
Looks fine. |
Awesome, thanks for the feedback. The PR is here if you want to review it |
In Part 1 of the instructions( just above the Note) this is stated:
"makeTreasureChest should take a List of Chest without specific conditions and return a List of Chest, with the duplicates removed, and the extra condition uniqueTreasure : () added."
But the type signature of
makeTreasureChest
is already given as part of the requirements later and does not have a List as either input or output.The text was updated successfully, but these errors were encountered: