Exercise:   Creating Contracts From Examples

Exercise: Creating Contracts From Examples

Directions: For each of the following collections of Examples, write the contract for the function above the examples.
  1. ; third-root : number -> number 
  2. ; sentence-length : string number -> number 
  3. ; upside-down : image -> image 
  4. ; product-squared : number number -> number 
  5. ; half-image : string -> image 
  6. ; triple : number -> number