![]() |
VOOZH | about |
Syntax: q_name.length() Parameters: The function does not takes any parameter. Return Value: It returns the number of elements in the queue.Example 1: Output:
2 1Example 2: Output:
0 3 2Reference: https://devdocs.io/ruby~2.5/queue#method-i-length