src/list.c

changeset 1345
79a865252b16
parent 1319
aa1f580f8f59
equal deleted inserted replaced
1344:8afaeb395b3c 1345:79a865252b16
474 474
475 CxIterator cxListMutIteratorAt( 475 CxIterator cxListMutIteratorAt(
476 CxList *list, 476 CxList *list,
477 size_t index 477 size_t index
478 ) { 478 ) {
479 if (list == NULL) list = cxEmptyList;
479 CxIterator it = list->cl->iterator(list, index, false); 480 CxIterator it = list->cl->iterator(list, index, false);
480 it.base.mutating = true; 481 it.base.mutating = true;
481 return it; 482 return it;
482 } 483 }
483 484
484 CxIterator cxListMutBackwardsIteratorAt( 485 CxIterator cxListMutBackwardsIteratorAt(
485 CxList *list, 486 CxList *list,
486 size_t index 487 size_t index
487 ) { 488 ) {
489 if (list == NULL) list = cxEmptyList;
488 CxIterator it = list->cl->iterator(list, index, true); 490 CxIterator it = list->cl->iterator(list, index, true);
489 it.base.mutating = true; 491 it.base.mutating = true;
490 return it; 492 return it;
491 } 493 }
492 494

mercurial