two_fer
This commit is contained in:
9
elixir/two-fer/lib/two_fer.ex
Normal file
9
elixir/two-fer/lib/two_fer.ex
Normal file
@@ -0,0 +1,9 @@
|
||||
defmodule TwoFer do
|
||||
@doc """
|
||||
Two-fer or 2-fer is short for two for one. One for you and one for me.
|
||||
"""
|
||||
@spec two_fer(String.t()) :: String.t()
|
||||
def two_fer(name \\ "you") when is_binary(name) do
|
||||
"One for #{name}, one for me."
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user