(Map other)
| 39 | final private static Object NOT_FOUND = new Object(); |
| 40 | |
| 41 | static public IPersistentMap create(Map other){ |
| 42 | ITransientMap ret = EMPTY.asTransient(); |
| 43 | for(Object o : other.entrySet()) |
| 44 | { |
| 45 | Map.Entry e = (Entry) o; |
| 46 | ret = ret.assoc(e.getKey(), e.getValue()); |
| 47 | } |
| 48 | return ret.persistent(); |
| 49 | } |
| 50 | |
| 51 | /* |
| 52 | * @param init {key1,val1,key2,val2,...} |
no test coverage detected