Created
March 5, 2018 22:12
-
-
Save kalub92/29461d6d7189a1313380c3c944560fd2 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
public func peek() -> Int { | |
if items.count != 0 { | |
return items[0] | |
} else { | |
fatalError() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment