Skip to content
Snippets Groups Projects
Commit 01f94c10 authored by Niels Möller's avatar Niels Möller
Browse files

Added is_empty method

Rev: lib/modules/ADT.pmod/queue.pike:1.2
parent 4514a5a0
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,11 @@ mixed peek() ...@@ -44,6 +44,11 @@ mixed peek()
return (tail < head) && l[tail]; return (tail < head) && l[tail];
} }
int is_empty()
{
return (tail == head);
}
void flush() void flush()
{ {
create(); create();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment