2017-07-24 17:06:56 +04:00
|
|
|
parameter (list string);
|
|
|
|
storage unit;
|
|
|
|
return (list string);
|
2017-07-24 14:28:41 +04:00
|
|
|
code {CAR; DIP {NIL string}; SWAP; PUSH bool True;
|
2017-07-24 17:06:56 +04:00
|
|
|
# INV: BOOL : ORIG_LIST : REV_LIST : []
|
|
|
|
LOOP {IF_CONS {DIP {SWAP}; CONS; SWAP; PUSH bool True} {NIL string; PUSH bool False}};
|
|
|
|
DROP; UNIT; SWAP; PAIR};
|