@@ -0,0 +1,585 @@
+package org.psjava.ds;%0A%0Aimport org.psjava.util.AssertStatus;%0Aimport org.psjava.util.IntSequenceIterable;%0A%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Apublic class MapFromKeyValueSequence %7B%0A%0A    public static %3CT%3E Map%3CT, T%3E create(List%3CT%3E keyValueSequence) %7B%0A        Map%3CT, T%3E map = new HashMap%3CT, T%3E();%0A        AssertStatus.assertTrue(keyValueSequence.size() %25 2 == 0);%0A        for (int i : IntSequenceIterable.create(0, 2, keyValueSequence.size() / 2))%0A            map.put(keyValueSequence.get(i), keyValueSequence.get(i + 1));%0A        return map;%0A%0A    %7D%0A%7D%0A

add MapFromKeyValueSequence