mirror of
https://github.com/rjNemo/exercism-elixir
synced 2026-06-06 10:26:48 +00:00
11 lines
346 B
Elixir
11 lines
346 B
Elixir
defmodule TwoFer do
|
|
@moduledoc """
|
|
`Two-fer` or `2-fer` is short for two for one. One for you and one for me.
|
|
"""
|
|
|
|
@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_bitstring(name), do: "One for #{name}, one for me."
|
|
end
|