DEV Community

Discussion on: The easiest problem you cannot solve.

Collapse
 
jrista profile image
Jon

Well, I looked up SKI combinators. If I am understanding it correctly, and if I've implemented S correctly here...I think the following would work:

const S = x => y => z => x(z)(y(z));
S(K)(K(cat))(dog); 

I am going to have to add "Learn SKI Combinators" to my list of things to do. :D

Collapse
 
joelnet profile image
JavaScript Joel

After you research SKI Combinators, look into Church Encoding.