You are currently viewing the gmlscripts.pro static mirror. Forum access and script submissions are not available through this mirror.

Invert gmlscripts.pro

ds_list_flip

ds_list_flip(id)
Rearranges the values of a list in reverse order.
COPY/// ds_list_flip(id)
//
//  Rearranges the values of a list in reverse order.
//
//      id          list data structure, real
//
/// gmlscripts.pro/license
{
    var dsid,i;
    dsid = argument0; 
    for(i=ds_list_size(dsid);i>=0;i-=1) {
        ds_list_add(dsid,ds_list_find_value(dsid,i));
        ds_list_delete(dsid,i);
    }
}

Contributors: Leif902

GitHub: View · Commits · Blame · Raw