Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Dedent fails in block

#12

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

Reported by Jared Kuolt · December 10th, 2008 @ 01:47 PM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

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.