Integers
In Lem, all numbers are treated as floating-point. For example, the number 2:
let two = 2;
The println
built-in can print strings, integers, arrays, and booleans. It can also concatenate mismatching types, but it will not pretty-print arrays.
println("Look, a number: " + 6);
As demonstrated on the strings page, concatenating mismatching types outside of the println
built-in will cause an error (see println & print for more information).