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 |