Created
December 5, 2010 19:48
-
-
Save henrikh/729402 to your computer and use it in GitHub Desktop.
One of the tasks for 7 PL in 7 Weeks
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
a = (1..16) | |
stash = [] | |
a.each {|e| p stash[-4..-1] if stash.push(e).count % 4 == 0} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment