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