A combinator problem with a set of test cases for the proposed solution.
Param: options
Example
constquest = newQuest({ input:'identity', cases: [ ['identity x', 'x'], ], allow:'SK', intro:'Find a combinator that behaves like the identity function.', }); quest.check('S K K'); // { pass: true, details: [...], ... } quest.check('K S'); // { pass: false, details: [...], ... } quest.check('K x'); // fail! internal variable x is not equal to free variable x, // despite having the same name. quest.check('I'); // fail! I not in the allowed list.
A combinator problem with a set of test cases for the proposed solution.
Param: options
Example