import edu.neu.ccs.demeterf.lib.Map;
import edu.neu.ccs.demeterf.lib.List;

/** A quick test of the new "imperative" demfgen.lib.List Methods */
public class MapTest extends ListTest{
    java.util.Random r = new java.util.Random();
    public static void main(String[] args){
        new MapTest().main();
    }
    
    void main(){
        Map<Integer,String> m = Map.create(List.create(1,2,3,4,5,6,7,8),
                List.create("one","two","three","four","five","six","seven","eight"));
        
        p("Map: "+m+"\n");
        p("Map: "+m.transformValues(new List.Map<String, String>(){
            public String map(String s){ return ":"+s; } 
        }).toTreeString()+"\n");
    }
}