In this post, we will solve Lambda Calculus – Evaluating Expressions #2 HackerRank Solution. This problem (Lambda Calculus – Evaluating Expressions #2) is a part of HackerRank Functional Programming series.
Task
Compute the value of (λx.x+1)((λy.y+2)3).
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 #2
6
Note: This problem (Lambda Calculus – Evaluating Expressions #2) is generated by HackerRank but the solution is provided by CodingBroz. This tutorial is only for Educational and Learning purpose.