ligo/test/contracts/reverse.tz
2017-08-18 18:14:17 +02:00

9 lines
237 B
Plaintext

parameter (list string);
storage unit;
return (list string);
code { CAR; NIL string; SWAP;
LAMBDA (pair string (list string))
(list string)
{DUP; CAR; DIP{CDR}; CONS};
REDUCE; UNIT; SWAP; PAIR};