Skip to content

Instantly share code, notes, and snippets.

@sojohnnysaid
Created May 8, 2020 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sojohnnysaid/5dd1cb67a8f89a2e505079cedc5d7ad8 to your computer and use it in GitHub Desktop.
Save sojohnnysaid/5dd1cb67a8f89a2e505079cedc5d7ad8 to your computer and use it in GitHub Desktop.
Simple Data Course section 1b - HtDF example
;; 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