Created
August 23, 2019 18:58
-
-
Save nikasulo/e4dad9ca73f559bdfae0247506cbaa66 to your computer and use it in GitHub Desktop.
isEmpty method for Ruby Deque
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
def is_empty? | |
@first.nil? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment