Dedent fails in block
Reported by Jared Kuolt | December 10th, 2008 @ 01:47 PM
This is not a practical example, but a dedent inside a block (using map here) fails:
>> [1,2,3].map do |i|
.. [2,3,4].map do |n|
.. i ** n
..
=> [[1,1,1],[4,8,16],[9,27,81]]
>> [1,2,3].map do |i|
.. [2,3,4].map do |n|
.. i ** n
.. i * 3
..
Error: Line 4: syntax error before: i
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Reia a dynamic scripting language for the Erlang virtual machine (BEAM)