Created
February 7, 2013 02:13
-
-
Save chikoski/4727848 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
def multiple(size, n) | |
return (1..size).to_a.map{|i| i * n} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment