41 lines
No EOL
646 B
Text
41 lines
No EOL
646 B
Text
let i = 14;
|
|
let i = (-14);
|
|
let i = 1000;
|
|
let i = 0b100;
|
|
let i = 0x1FF;
|
|
let i = 0o777;
|
|
let i64 = 128L;
|
|
let i64 = 0b10L;
|
|
let i32 = 32l;
|
|
let i32 = 0x12l;
|
|
let nat = 10n;
|
|
let nat = 0o644n;
|
|
let f = 5.;
|
|
let f = 5.1;
|
|
let f = 1e+1;
|
|
let f = 1e1;
|
|
let f = 1e-1;
|
|
let f = 1024e12;
|
|
let f = 1L;
|
|
|
|
let f = 23.0 +. 1.0;
|
|
let f = 2 / 23 * 1;
|
|
let f = 2.0 /. 23.0 *. 1.0;
|
|
let exp = 2.0 ** 2.0;
|
|
|
|
let structual = true == false;
|
|
let reference = true === false;
|
|
|
|
let b = true || false;
|
|
let l = [];
|
|
let a = [||];
|
|
let arr = [|1, 2, 3|];
|
|
let b = [item1, item2, ...theRest];
|
|
let () = ignore(b);
|
|
|
|
let str = "a" ++ "b";
|
|
|
|
let c = 'a';
|
|
let c = '\xFF';
|
|
let c = '\128';
|
|
let c = '\n'; |