var a = new List(["a", "b", 0, '1']); a.insert(2).insert(3); this.form.output.value = "test1: "+ a.toString()+"\n"; a.insert('4'); this.form.output.value += "test2: "+ a.toString()+"\n"; a.insert('5'); this.form.output.value += "test3: "+ a.toString()+"\n"; a.remove(0); this.form.output.value += "test4: "+ a.toString()+"\n"; a.remove(4); this.form.output.value += "test5: "+ a.toString()+"\n"; a.undo(); a.undo(); a.undo(); a.undo(); a.undo(); this.form.output.value += "test6: "+ a.toString()+"\n";
výstup: