Skip to content

Instantly share code, notes, and snippets.



Created Jul 27, 2020
What would you like to do?
(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