In this post, we will solve Lambda Calculus – Evaluating Expressions #3 HackerRank Solution. This problem (Lambda Calculus – Evaluating Expressions #3) is a part of HackerRank Functional Programming series.
Task
Under Church encoding, what natural number does the expression λx.λy.x47y represent?
The required answer is an integer, which you may enter in the text box. Do not leave any leading or trailing spaces.
Solution – Lambda Calculus – Evaluating Expressions #3
47
Note: This problem (Lambda Calculus – Evaluating Expressions #3) is generated by HackerRank but the solution is provided by CodingBroz. This tutorial is only for Educational and Learning purpose.