First commit
This commit is contained in:
commit
1dba0af064
36 changed files with 1065 additions and 0 deletions
11
test_num.ex
Normal file
11
test_num.ex
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
defmodule TestNum do
|
||||
def test(x) when x < 0 do
|
||||
:negative
|
||||
end
|
||||
|
||||
def test(0), do: :zero
|
||||
|
||||
def test(x) when x > 0 do
|
||||
:positive
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue