![]() |
VOOZH | about |
Syntax: q_name.deq() Parameters: The function does not takes any element. Return Value: It returns the first element which is at the front of the queue and removes it from the queue.Example 1: Output:
5 6Example 2: Output:
12 21Reference: https://devdocs.io/ruby~2.5/queue#method-i-deq