Created
December 13, 2011 10:40
-
-
Save frenchy64/1471620 to your computer and use it in GitHub Desktop.
seq type annotation
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 characters
| ;; Type annotation for seq, inspired by haskell | |
| ;; (+T <var> :- <interface/protocol>* => <classes>) | |
| (+T clojure.core/seq :- (ISeq a) (ISeq b) => a -> b) | |
| (+T clojure.core/seq :- (Seqable a) (ISeq b) => a -> b) | |
| (+T clojure.core/seq :- nil -> nil) | |
| (+T clojure.core/seq :- (Iterable a) (ISeq b) => a -> b) | |
| (+T clojure.core/seq :- (PrimArray a) (ISeq b) => a -> b) | |
| (+T clojure.core/seq :- (CharSequence a) (ISeq b) => a -> b) | |
| (+T clojure.core/seq :- (Map a) (ISeq b) => a -> b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment