toString

Summary

Returns a string representation of the queue.

Usage

public override string toString()

Returns

A string representation of the queue and its elements.

Description

Returns a string representation of the queue and its elements.

Examples

Basic Usage
1
2
3
4
import System;
 
auto queue = new Queue<int>([ 1, 2, 3 ]);
Console.log(queue.toString()); // "1, 2, 3"

Share

HTML | BBCode | Direct Link