a= [1,2,3,4,5,6,7,8]
Scenarios 1:
a.reduce(:*)
Scenarios 2:
b=1
a.each do |e|
b=b*e
end
Scenarios 1:
a.reduce(:*)
Scenarios 2:
b=1
a.each do |e|
b=b*e
end
What is interactor? Interactor provides a common interface for performing complex user interactions An interactor is a simple, sin...
No comments:
Post a Comment