Logo

Programming-Idioms

History of Idiom 3 > diff from v27 to v28

Edit summary for version 28 by programming-idioms.org:
[Elixir] +DemoURL

Version 27

2016-09-14, 13:53:42

Version 28

2016-11-30, 22:32:10

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Idiom #3 Create a procedure

Like a function which doesn't return any value, thus has only side effects (e.g. Print to standard output)

Code
def finish(name) do
  IO.puts "My job here is done. Goodbye #{name}"
end
Code
def finish(name) do
  IO.puts "My job here is done. Goodbye #{name}"
end
Demo URL
http://play.elixirbyexample.com/s/a3d5a356bb