Last active
June 1, 2020 03:04
-
-
Save kleytonmr/05767bf54b5c16448d8d2345adcf3406 to your computer and use it in GitHub Desktop.
Pop
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
# arr.pop( ‹n›* pop ) → obj or nil | |
a = %w[ f r a b j o u s ] | |
a.pop # => "s" | |
a # => ["f", "r", "a", "b", "o", "u"] | |
a.pop(3) # => ["b", "o", "u"] | |
a # => ["f", "r", "a", "b"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment