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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Logic

Logic

Photo of elixir

elixir

Photo of Erlang

Erlang

Related news:

News photo

Elixir and Machine Learning in 2024 so far: MLIR, Arrow, structured LLM, etc.

News photo

Making my dumb A/C smart with Elixir and Nerves

News photo

Prolog and Natural-Language Analysis (1987) [pdf]