Mercurial > lasercutter
view src/clojure/test_clojure/protocols/examples.clj @ 10:ef7dbbd6452c
added clojure source goodness
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 21 Aug 2010 06:25:44 -0400 |
parents | |
children |
line wrap: on
line source
1 (ns clojure.test-clojure.protocols.examples)3 (defprotocol ExampleProtocol4 "example protocol used by clojure tests"6 (foo [a] "method with one arg")7 (bar [a b] "method with two args")8 (^String baz [a] [a b] "method with multiple arities")9 (with-quux [a] "method name with a hyphen"))11 (definterface ExampleInterface12 (hinted [^int i])13 (hinted [^String s]))