Project

General

Profile

Actions

Misc #16096

closed

each in each (multiple uses 'each')

Added by D1mon (Dim F) over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Assignee:
-
[ruby-core:94255]

Description

obj.each {|a|
    a.some_method1.each {|b|
        ... # comes here (enter)
    }
    a.some_method2.each {|c|
        ... # does not enter here
    }
}

# tried and that way. also does not go
for a in obj
    for b in a.some_method1
        ... # comes here
    end
    for c in a.some_method2
        ... # does not enter here
    end
end

help solve the problem. I’ve been suffering for 2 days.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0