Created
February 12, 2020 15:24
-
-
Save kyptin/126835260d4bd5e674797c82fe1afb81 to your computer and use it in GitHub Desktop.
Code for an in-class quiz (COMP 590/spring 2020) for listing behaviors of a function
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
;; To write tests for this function, what behaviors would you list? | |
(defn summation | |
([xs] (summation identity xs)) | |
([f xs] (reduce + 0 (map f xs)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment