Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Queue-Definition/VBA/queue-definition.vba
Normal file
19
Task/Queue-Definition/VBA/queue-definition.vba
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
Public queue As New Collection
|
||||
|
||||
Private Sub push(what As Variant)
|
||||
queue.Add what
|
||||
End Sub
|
||||
|
||||
Private Function pop() As Variant
|
||||
If queue.Count > 0 Then
|
||||
what = queue(1)
|
||||
queue.Remove 1
|
||||
Else
|
||||
what = CVErr(461)
|
||||
End If
|
||||
pop = what
|
||||
End Function
|
||||
|
||||
Private Function empty_()
|
||||
empty_ = queue.Count = 0
|
||||
End Function
|
||||
Loading…
Add table
Add a link
Reference in a new issue