Sha256: 029790bc62b85761d704dfc0bb2f36301596d6142b1257a5680b59364a51555d

Contents?: true

Size: 656 Bytes

Versions: 110

Compression:

Stored size: 656 Bytes

Contents

defmodule HelloWorld do
  @moduledoc """
  Elixir counts the number of arguments as part of the function name.
  For instance;

      def hello() do
      end

  would be a completely different function from

      def hello(name) do
      end

  Can you find a way to make all the tests pass with just one
  function?

  Hint: look into argument defaults here:
  http://elixir-lang.org/getting-started/modules-and-functions.html#default-arguments
  """

  @doc """
  Greets the user by name, or by saying "Hello, World!"
  if no name is given.
  """
  @spec hello(String.t) :: String.t
  def hello(name) do

    "Your implementation goes here"

  end
end

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
trackler-2.2.1.43 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.42 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.41 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.40 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.39 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.38 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.37 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.36 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.35 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.34 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.33 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.32 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.31 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.30 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.29 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.28 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.27 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.26 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.25 tracks/elixir/exercises/hello-world/hello_world.exs
trackler-2.2.1.24 tracks/elixir/exercises/hello-world/hello_world.exs