Good day, I'm a beginner in Java and I was wondering if, in Java, I'm able to do a beta reduction with a given lambda expression in Java. Basically lambda reduction is like this:
1.)
Expression : (λa.abc)x
Beta-Reduced Expression (without parenthesis) : xbc
2.)
Expression :(λabc.abc)x)y)
Beta-Reduced Expression (without parenthesis) : λc.xyc
basically what I'm asking is, how do I approach this type of problem in Java? do I do it with strings, or? Just trying to learn :))
The next step would be parenthesizing, but I think it's quite complicated for me to do.