Created
February 11, 2019 23:23
-
-
Save stephenrichards/28f4badbd8b0a6ddb883a74ece90584c 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
# create the EvenOnlyArray class so that this works | |
eoa = EvenOnlyArray.new 3,55,12,44,26,37 | |
eoa.each_even { |x| puts x * 2 } | |
# expected output: | |
# 24 | |
# 88 | |
# 52 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment