This thread is permanently archived
defmodule Hello do
Post number #
562913
,
ID:
22eda7
| @doc """
Prints "hello <name
>" on the console
Returns `:ok`
## EXAMPLE(console output not included, only function return)
iex
> Hello.print_hello('world')
:ok
"""
def print_hello(name) do
IO.puts "hello #{name}"
end
end
Total number of posts: 1, last modified on:
Sun Jan 1 00:00:00 1558438311
This thread is permanently archived
| @doc """
Prints "hello <name>" on the console
Returns `:ok`
## EXAMPLE(console output not included, only function return)
iex> Hello.print_hello('world')
:ok
"""
def print_hello(name) do
IO.puts "hello #{name}"
end
end