ligo/test/contracts/list_map_block.tz
2017-11-03 15:51:11 +01:00

7 lines
172 B
Plaintext

parameter (list int);
return (list int);
storage unit;
code { CAR; PUSH int 0; SWAP;
MAP { DIP{DUP}; ADD; DIP{PUSH int 1; ADD}};
UNIT; SWAP; PAIR; DIP{DROP}}