...
- Type (or cut/paste) the following blocks of code expressions into the definition interactions window , including:
Code Block (+ 2 7)
Code Block (* (+ 2 7) 3)
- Type (or cut/paste) the following blocks of code into the definition window, including:
Observe that DrScheme helps you with the indentation if you use the Return key in appropriate places.Code Block ;; owe: nat -> num ;; Returns how much money you owe for eating the given number of ;; slices of pizza. ;; (define (owe slices) (* (/ 12 8) slices))
...
- It also "bounces" the cursor to visually match the closing parenthesis with the corresponding opening parenthesis.
- We included comments before each function definition, explaining what it is supposed to do. DrScheme ignores the comments, but you, your grader, your boss, etc., can read them. Soon, we'll provide more guidance on what to say in your comments.
Code Block ; One form of comments is anything following a semicolon ; up to the end of the line. ;; However, you'll often see two semicolons starting a comment. #| Another form of comments is anything between these two matching markers. |#
...