Last active
August 29, 2015 14:01
-
-
Save frenchy64/5b88cfdfd834bfbf93ae to your computer and use it in GitHub Desktop.
This file contains 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
(defprotocol Foo | |
(is-foo [this, a :- Number] :- Number) | |
(is-bar [this, a :- Int] :- Int | |
[this, b :- Number] :- Number) | |
(is-baz [this, a :- Int] :- Int | |
[this, a :- Int, b :- Int] :- Int | |
[this, a :- Int, b :- Int, c :- Int] :- Int)) |
This file contains 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
(ann-protocol Foo | |
is-foo | |
[Foo Number -> Number] | |
is-bar | |
(Fn [Foo Int -> Int] | |
[Foo Number -> Number]) | |
is-baz | |
(Fn [Foo Int -> Int] | |
[Foo Int Int -> Int] | |
[Foo Int Int Int -> Int])) | |
(defprotocol> Foo | |
(is-foo [this a]) | |
(is-bar [this a]) | |
(is-baz [this a] | |
[this a b] | |
[this a b c])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment