// ds_queue_repr(id)
// Returns a string representation of the given queue
var copy, s;
copy = ds_queue_create();
ds_queue_copy(copy, argument0);
s = '';
while (!ds_queue_empty(copy)) {
if (s != '')
s += ', ';
s += string(ds_queue_dequeue(copy));
}
s = '[' + s + ']';
return s;
Categories: Data processing, String handling
There are no comments to display.
You must be signed in to post comments.