Lambdas - pwdlugosz/Rye GitHub Wiki

#Lambdas Lambdas are essentially stored expressions with variable binding. The are bound at compile time. The compiler will essentially in-line the Rye expression parser, meaning the expression tree's root nodes are replaced with the expression represented by the lambda.

###Gradient Rye can understand basic calculus over lambdas. For example, Rye can create a lambda that is a derivative of another lambda with respect to a single parameter.

For example, F(X,Y,Z) = sin(X) + Y^2 + 1 / Z, can be differentiated with respect to X within Rye, yielding, cos(X).