Created
May 8, 2020 10:10
-
-
Save sojohnnysaid/5dd1cb67a8f89a2e505079cedc5d7ad8 to your computer and use it in GitHub Desktop.
Simple Data Course section 1b - HtDF example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Signature | |
;; String -> String | |
;; Purpose | |
;; adds "!" to the end of s | |
;; Examples | |
(check-expect (yell "hello") "hello!") ; elborate - "hello" + "!" | |
(check-expect (yell "goodbye") "goodbye!") ; elborate - string-append "goodbye" "!" | |
;; Stub | |
;;(define (yell s) "") | |
;; Inventory Template/Constants | |
;;(define (yell s)(... s)) | |
;; copy the template | |
;; Code Body | |
(define (yell s) | |
(string-append s "!")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment