ds_list_flip
Rearranges the values of a list in reverse order.
- ds_list_flip(list)
- Rearranges the values of a list in reverse order.
COPY/// @func ds_list_flip(list)
///
/// @desc Rearranges the values of a list in reverse order.
///
/// @param {list} list list data structure
///
/// GMLscripts.com/license
function ds_list_flip(list)
{
for (var i=ds_list_size(list); i>=0; i--) {
ds_list_add(list, ds_list_find_value(list, i));
ds_list_delete(list, i);
}
}
Contributors: Leif902
GitHub: View · Commits · Blame · Raw