Last active
August 29, 2015 14:01
-
-
Save kristjan/71f6940c71133f6bb8bc 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
$ ruby proctest.rb | |
1 | |
proctest.rb:2:in `block in <main>': wrong number of arguments (2 for 1) (ArgumentError) | |
from proctest.rb:5:in `call' | |
from proctest.rb:5:in `<main>' |
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
relaxed = Proc.new { |a| puts a.inspect } | |
strict = lambda { |a| puts a.inspect } | |
relaxed.call(1,2) | |
strict.call(1,2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment