Created
July 27, 2020 22:35
-
-
Save rileylev/96a4293f4250f4a93cca4561b6d7ff78 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(defgeneric add (x y)) | |
;;; assume we already defined vector and integer classes | |
(defmethod add ((x vector) (y vector)) | |
....) | |
(defmethod add ((x integer) (y integer)) | |
(+ x y)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment