ligo/test/contracts/reverse.tz

9 lines
237 B
Plaintext
Raw Normal View History

2017-07-24 17:06:56 +04:00
parameter (list string);
storage unit;
return (list string);
2017-08-16 00:24:40 +04:00
code { CAR; NIL string; SWAP;
LAMBDA (pair string (list string))
(list string)
{DUP; CAR; DIP{CDR}; CONS};
REDUCE; UNIT; SWAP; PAIR};