Hasklet #2
Due: Wed, Apr 14
Read the general information on Hasklets!
Submit your solution through Canvas.
Description
Download the template linked above and complete each undefined
function. If the type of the function is not given, be sure to include the type declaration in your solution.
The intended behavior of each undefined
function can be deduced from the description and the example test cases in the comments.
The test cases in the comments can also be executed as unit tests using the Doctest tool. You are definitely welcome and encouraged to add your own test cases in addition to the small number that I have provided.