PI = a + b + 0.012;
pub mut Pi = 123;
fn(a, b) = a + b;
pub `+`(a, b) = a + b;
one(b) = console.log(b);
pub zero() = a + b;version: v1;
import:
`std/math`,
`std/math`{`+`};
derive: equals, to_json;
obj = {
val = 1,
val2 = "dfsfd"
};
arr = [
1,
2,
3
];
str = "multiline
dfsakfalf
"
matchExample(v) =
v match (
== 1 -> 1,
== "a string" -> _,
== -2 -> 2
)
+ 2;| A(
pub test = "fsldkjf";
);
| B(
val = false;
);is function
is string
is Type
test() =
arr map (_[0] + 2)test: $string = "df"
test() *string =
arr map (_[0] + 2)