a = [1,2,3,4,444,6,5,6,7,8,44,55,333,555,66,88]
b = []
a.each do |h|
b.push(h) if (h%2) == 0
end
p b
output:=> [2, 4, 444, 6, 6, 8, 44, 66, 88]
b = []
a.each do |h|
b.push(h) if (h%2) == 0
end
p b
output:=> [2, 4, 444, 6, 6, 8, 44, 66, 88]
What is interactor? Interactor provides a common interface for performing complex user interactions An interactor is a simple, sin...
No comments:
Post a Comment