static L listWithSingleElementChanged(L l, int i, A a) { var l2 = cloneList(l); l2.set(i, a); ret l2; }