By Daniel · December 30, 2008
Constructs (and returns) a concatenation of L1 and L2 without mofifying either of the two lists
/* ds_list_concat(L1, L2) * Constructs (and returns) a concatenation of L1 and L2 without mofifying * either of the two lists */ var L, size, i; L = ds_list_create(); // Add elements of L1 size = ds_list_size(argument0); for (i = 0; i < size; i += 1) ds_list_add(L, ds_list_find_value(argument0, i)); // Add elements of L2 size = ds_list_size(argument1); for (i = 0; i < size; i += 1) ds_list_add(L, ds_list_find_value(argument1, i)); // Return the result return L;
Categories: Data processing
There are no comments to display.
You must be signed in to post comments.