Exercise:   Do Examples Have the Same Contracts?

Exercise: Do Examples Have the Same Contracts?

Directions: For each pairs of Examples below, decide whether the two examples have the same contract. If they do, fill in the contract in the space provided. If not, write a few words explaining why.
  •  

    no match (the domains have different numbers of arguments)

  •  

    ; mystery : image -> image

  •  

    no match (the domains have different numbers of arguments)

  •  

    ; mystery : string number -> number

  •  

    no match (the range types are different)

  •  

    ; mystery : string -> number

  •  

    no match (the domains have different orders of arguments)