Get the latest tech news
(Logic) Prolog, Erlang, Elixir a side-by-side reference sheet
Version used for testing the examples in the sheet. How to determine the version.
short circuit operators andalso orelseand or && || relational operators=:= \= < > =< >=== /= < > =< >= no numeric conversion:=:= =/= arithmetic expression X is 2 + 2.2 + 22 + 2 arithmetic operators addition, subtraction, multiplication, float division, integer division, remainder They are used to give instructions to the infererence engine, e.g. the cut goal which prevents backtracking. The return value is a string which can contain newlines if a line of less than the requested number of characters was entered.
Or read this on Hacker News