ligo/test/contracts/build_list.tz

8 lines
250 B
Plaintext
Raw Normal View History

2017-07-24 17:06:56 +04:00
parameter uint64;
return (list uint64);
storage unit;
code {CAR; NIL uint64; SWAP; DUP; PUSH uint64 0; CMPNEQ;
2017-07-24 17:06:56 +04:00
LOOP {DUP; DIP {SWAP}; CONS; SWAP; PUSH uint64 1; SWAP; SUB;
DUP; PUSH uint64 0; CMPNEQ};
CONS; UNIT; SWAP; PAIR};