Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Sort-three-variables/Elixir/sort-three-variables.elixir
Normal file
13
Task/Sort-three-variables/Elixir/sort-three-variables.elixir
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
x = 'lions, tigers, and'
|
||||
y = 'bears, oh my!'
|
||||
z = '(from the "Wizard of OZ")'
|
||||
|
||||
[x, y, z] = Enum.sort([x, y, z])
|
||||
IO.puts "x = #{x}\ny = #{y}\nz = #{z}\n"
|
||||
|
||||
x = 77444
|
||||
y = -12
|
||||
z = 0
|
||||
|
||||
[x, y, z] = Enum.sort([x, y, z])
|
||||
IO.puts "x = #{x}\ny = #{y}\nz = #{z}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue