Created
April 8, 2019 01:59
-
-
Save anettodev/96f14c4f134d8056606545734ea70d1d to your computer and use it in GitHub Desktop.
This file contains 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
enum ItalianMenu { | |
case penne | |
case ravioli | |
case lasagna | |
} | |
let italianOrdersQueue = RestaurantOrders<ItalianMenu>()// instance with ItalianMenu Items | |
italianOrdersQueue.enqueue(item: .penne) | |
italianOrdersQueue.enqueue(item: .lasagna) | |
print(italianOrdersQueue.showCurrentQueue()) // [.penne, .lasagna] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment