Created
November 6, 2015 04:47
-
-
Save kkchu791/eda1e292a3bbb67ed682 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 array | |
a = (1..100).to_a | |
a.each_slice(10).to_a | |
end | |
p array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kirk, this is an excellent idea. Might be nice to just give it an input, and use that: