Skip to content
cosmos-lang edited this page Oct 2, 2022 · 3 revisions

1. Syntax

Syntax Output
#str size(str)
t.x table.get(t,x)
t['x'] table.get(t,x)
t.x:2 table.set(t,x,2)
:f(2) functor
Types Data
String "str"
Number 1, 2.5
Relation rel(x) true;
Functor Tuple(x)
List [1,'2']
Operators
and,or
if,when,choose
not,once
Arithmetic Operators
+ - * /
< > <= >= = !=
Conversion (casting)
str
int
num, real