sources/list.h

changeset 137
485cb6d6b98c
parent 109
e4966d7e615d
child 148
19e98695e584
equal deleted inserted replaced
132:8a4690db252e 137:485cb6d6b98c
261 if (a < 0 or b >= size() or b < a) 261 if (a < 0 or b >= size() or b < a)
262 return Self(); 262 return Self();
263 263
264 Self result; 264 Self result;
265 265
266 for (int i = a; i <= b; ++i) 266 for (int i = a; i < b; ++i)
267 result << operator[] (i); 267 result << operator[] (i);
268 268
269 return result; 269 return result;
270 } 270 }
271 271

mercurial