Created
March 28, 2019 12:10
-
-
Save BitOfUniverse/e415e79922cd10344518f6f210a9a7a0 to your computer and use it in GitHub Desktop.
Ruby infinite lambda self invocation
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
go_deeper.call.call.call.call.call.call.call.call | |
# You can try to implement it yourself. Your code will look like this: | |
(go_deeper = -> { puts "deeper"; go_deeper }).call.call.call.call.call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment