// ds_stack_repr(id)
// Returns a string representation of the given stack
var copy, s;
copy = ds_stack_create();
ds_stack_copy(copy, argument0);
s = '';
while (!ds_stack_empty(copy)) {
if (s != '')
s += ', ';
s += string(ds_stack_pop(copy));
}
s = '[' + s + ']';
return s;
Categories: Data processing, String handling
There are no comments to display.
You must be signed in to post comments.