Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions markup/logic
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ foo(X, Y) = foo(1, 2).||{X, Y} = {1, 2}. _
@<&nbsp;&nbsp;>@X > 0 -> 1; _
@<&nbsp;&nbsp;>@X == 0 -> X; _
@<&nbsp;&nbsp;>@X < 0 -> -1 _
end|| if x > 0 do 1 else if x < 0 do -1 else 0 end end||
||[#case case]||(@<&nbsp;&nbsp;>@X = 1 -> Result = true _
end||cond _
@<&nbsp;&nbsp;>@x > 0 -> 1
@<&nbsp;&nbsp;>@x == 0 -> x
@<&nbsp;&nbsp;>@x < 0 -> -1
end||[#case case]||(@<&nbsp;&nbsp;>@X = 1 -> Result = true _
;@<&nbsp;&nbsp;>@X = 0 -> Result = false ). _
##gray|//or://## _
member(X-Result, [ _
Expand Down Expand Up @@ -865,4 +868,4 @@ The expressions in guards must be side-effect free. Thus they can only contain
+ [#top Elixir]

[http://elixir-lang.org/getting-started/introduction.html Elixir: Introduction]
[http://elixir-lang.org/docs/stable/elixir/Kernel.html Elixir: Standard Library]
[http://elixir-lang.org/docs/stable/elixir/Kernel.html Elixir: Standard Library]