Created
June 6, 2019 05:06
-
-
Save Mreyna3/5161dc37990a86a9f845299b59a0a9c8 to your computer and use it in GitHub Desktop.
updated processBatch function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func processBatch(){ | |
for _ in 0..<queue.getCount(){ | |
batchSum -= queue.peek()! | |
//1 | |
print("deueuing \(queue.dequeue()!.format())") | |
} | |
//2 | |
print("deueuing \(batchSum!.format())") | |
resetBatchSum() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment