Remove elements based on first-occurrence

main
Hammy 3 years ago
parent 03137f9bed
commit 0633d182c8

@ -80,6 +80,7 @@ int List_remove(List *list, int element) {
for (int i = 0; i < list->_currentSize + 1; i++) {
if (list->_array[i] == element) {
positionToDelete = i;
break;
}
}

Loading…
Cancel
Save