Created
October 24, 2020 05:24
-
-
Save nfedyashev/4d52739680fcd61290424800d3a07216 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The simplest implementation might look like this: | |
<!-- language: lang-ruby --> | |
class ArrayUtils | |
def self.multiplos(num, step) | |
step.step(num * step, step).to_a | |
end | |
end | |
but you may need to add some additional checks for input arguments. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment