I hereby claim:
- I am joeybaer on github.
- I am joeybaer (https://keybase.io/joeybaer) on keybase.
- I have a public key ASA9DmZFQgFcZg4TdneHS-_9R6RzL313Y281foL47sUrsgo
To claim this, I am signing this object:
defmodule CreditCard do | |
def valid?(number) do | |
number | |
|> Integer.digits() | |
|> process_digits() | |
|> Enum.sum() | |
|> rem(10) == 0 | |
end | |
defp process_digits(digits) do | |
length = Enum.count(digits) |
defmodule Bus do | |
def number(stops) do | |
stops | |
|> Enum.reduce(0, fn {x, y}, acc -> acc + (x - y) end) | |
end | |
end |
I hereby claim:
To claim this, I am signing this object: