waliente
Member
Hi everyone, i have an issue about find duplicated values in a ds_list.
This is the example:
I need to find the duplicates values and store its in a new temporary list. How can i do that?
This is the example:
Code:
var list = [1,2,3,3,4,5,6,6,7,8,8,9,10] // this is only for example, in the real code this is a ds_list
var tempList = ds_list_create();
for(var i = 0; i < ds_list_size(list); i++) {
var _value = ds_list_find_value(list, i);
...
}
ds_list_destroy(tempList);
I need to find the duplicates values and store its in a new temporary list. How can i do that?