3 ms·
RUBY... def add(a, b) return a if b.zero? return b if a.zero? a + b end Now lets see elixir :) I say the trial should allow at least one bit of code that
by john_the_writer 4y ago
RUBY...
def add(a, b)
return a if b.zero?
return b if a.zero?
a + b
end
Now lets see elixir :)
I say the trial should allow at least one bit of code that we provide.