Your definition of function binary in the preceding problem uses cases. Rewrite that program so that the definition of binary does not use cases, but instead computes using statements. The definition should have the form
  Define
    binary(n) = str |
     ...
  %Define
where the ... part is replaced by statements that define str. You will need an If-statement. You might want to write open in front of If so that definitions made inside the If-statement are available outside of the If-statement.

 

  [Language: Cinnameg  Kind: program]