Added clear and clearPop to README

This commit is contained in:
Nocturn9x 2022-03-15 16:57:23 +01:00
parent ebe84962b9
commit 2fba62708f
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,11 @@ other.add(9)
other.add(10)
queue.extend(@[5, 6, 7, 8])
queue.extend(other)
# Clears the queue in O(1) time
queue.clear()
# Clears the queue in O(n) time
queue.clearPop()
```
---------------------