![]() |
VOOZH | about |
Syntax: q_name.clear() Parameters: The function does not takes any element. Return Value: It clears the queue and does not returns anything.Example 1: Output:
5 0Example 2: Output:
0Reference: https://devdocs.io/ruby~2.5/queue#method-i-clear