MCPcopy Index your code
hub / github.com/clojure/clojure / hashOrdered

Method hashOrdered

src/jvm/clojure/lang/Murmur3.java:101–112  ·  view source on GitHub ↗
(Iterable xs)

Source from the content-addressed store, hash-verified

99}
100
101public static int hashOrdered(Iterable xs){
102 int n = 0;
103 int hash = 1;
104
105 for(Object x : xs)
106 {
107 hash = 31 * hash + Util.hasheq(x);
108 ++n;
109 }
110
111 return mixCollHash(hash, n);
112}
113
114public static int hashUnordered(Iterable xs){
115 int hash = 0;

Callers 4

hasheqMethod · 0.95
hasheqMethod · 0.95
EmptyListClass · 0.95
hasheqMethod · 0.95

Calls 2

hasheqMethod · 0.95
mixCollHashMethod · 0.95

Tested by

no test coverage detected