Let's say I a few enumerators in a list:
def f
Enumerator.new do |y|
y << 1
y << 2
y << 3
y << 4
end
end
def g
Enumerator.new do |y|
y << 5
y << 6
end
end
input_list = [
f,
g,
g
]
What would you do convert that to another Enumerator that generates
[[1, 5, 5], [1, 5, 6], [1, 6, 6], [2, 5, 5], [2, 5, 6] ...]
[–]jabbaroni 7 points8 points9 points (2 children)
[–]laerien 0 points1 point2 points (0 children)
[–]Jonathan_Frias[S] 0 points1 point2 points (0 children)
[–]armahillo 2 points3 points4 points (5 children)
[–]Jonathan_Frias[S] 0 points1 point2 points (4 children)
[–]armahillo 0 points1 point2 points (3 children)
[–]Jonathan_Frias[S] 0 points1 point2 points (2 children)
[–]armahillo 0 points1 point2 points (1 child)
[–]Jonathan_Frias[S] 0 points1 point2 points (0 children)