On May 20, 10:57 pm, Mibu <mibu.cloj...@gmail.com> wrote: > I tried to use Long keys from the java.io.File/length method in a hash- > map and failed to retrieve values using them. sorted-map is fine. The > doc says hash-maps require keys that support .equals and .hashCode. > Doesn't Long support those or am I missing something else?
Perhaps you could post a code snippet that shows the problem. Here's a snippet that shows it works: Clojure=> (def ml {(long 1) "one"}) Clojure=> (ml (long 1)) "one" To show you that a Long is really used: Clojure=> (class (first (keys ml))) java.lang.Long -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en