Created
January 21, 2015 05:01
-
-
Save atroche/3ba3545183d8e256b76b 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
(ann tuples-to-map [(Vec Any) -> (Map Any Any)]) | |
(defn tuples-to-map [tuples] | |
(into {} tuples)) |
Author
atroche
commented
Jan 21, 2015
this works:
(ann tuples-to-map [(Seqable Any) -> (Coll Any)])
(defn tuples-to-map [tuples]
(into {} tuples))
You probably want (All [k v] [(Seqable '[k v]) -> (Map k v)])
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment