ligo/src/test/contracts/tuple.religo

13 lines
274 B
Plaintext
Raw Normal View History

2019-12-10 17:47:31 +04:00
type abc = (int, int, int);
let projection_abc = (tpl: abc): int => tpl[1];
type foobar = (int, int);
let fb: foobar = (0, 0);
let projection = (tpl: foobar): int => tpl[0] + tpl[1];
type big_tuple = (int, int, int, int, int);
let br: big_tuple = (23, 23, 23, 23, 23);