2017-07-24 17:06:56 +04:00
|
|
|
parameter (pair (list string) (list string));
|
|
|
|
storage unit;
|
|
|
|
return bool;
|
2017-07-24 14:28:41 +04:00
|
|
|
code {CAR; DUP; CAR; DIP{CDR}; EMPTY_SET string; SWAP;
|
2017-07-24 17:06:56 +04:00
|
|
|
LAMBDA (pair string (set string)) (set string) {DUP; CAR; DIP{CDR}; PUSH bool True; SWAP; UPDATE};
|
|
|
|
REDUCE; PUSH bool True; SWAP; PAIR; SWAP;
|
2017-07-24 14:28:41 +04:00
|
|
|
LAMBDA (pair string (pair (set string) bool))
|
|
|
|
(pair (set string) bool)
|
|
|
|
{DUP; DUP; CAR; DIP{CDAR; DIP{CDDR}; DUP}; MEM; DIP{SWAP}; AND; SWAP; PAIR};
|
2017-07-24 17:06:56 +04:00
|
|
|
REDUCE; CDR; UNIT; SWAP; PAIR};
|