Last active
December 17, 2015 06:19
-
-
Save spoon16/5564170 to your computer and use it in GitHub Desktop.
Revisions
-
Eric Schoonover revised this gist
May 13, 2013 . 1 changed file with 10 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,15 @@ (defn slice ([] (slice "hello world")) ([v] (-slice v))) (defprotocol Pizza (-slice [this])) (extend-type String Pizza (-slice [this] (do this))) (slice "works") ;; works (slice) ;; hello world -
Eric Schoonover created this gist
May 12, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ (defprotocol Pizza (slice [this])) (defn slice [] (slice "hello world")) (extend-type String Pizza (slice [this] (do this))) (slice "works") ;; Works Fine (slice) ;; ArityException