Created
November 9, 2020 19:40
-
-
Save Haumer/9f24676d194fb3d7e2b75bdbf70f7715 to your computer and use it in GitHub Desktop.
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
numbers = [1, 2, 5, 8, 10, 13] | |
enum.filter_map { |i| i * 2 if i.even? } | |
# => [4, 16, 20] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment