RosettaCodeData/Task/Polymorphic-copy/Common-Lisp/polymorphic-copy-2.lisp

6 lines
195 B
Common Lisp

(defmethod frob ((sequence sequence))
(format t "~&sequence has ~w elements" (length sequence)))
(defmethod frob ((string string))
(format t "~&the string has ~w elements" (length string)))