static L indicesOfEndingWithTrim(LS l, S suffix) { new L x; for i over l: if (endsWith(trim(l.get(i)), suffix)) x.add(i); ret x; }