Created
November 30, 2012 10:05
-
-
Save melborne/4174909 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
# encoding: UTF-8 | |
∞= 1.0/0 | |
(1..∞).lazy.map {|i| Statue.new(i) } | |
.select {|statue| statue.of_liberty? } | |
.take(100).send(:george) | |
# ~> YouLazzyError: undefined method ‘lazy’ for 1..Infinity:Range |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment