-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lambdaexpr #123
Lambdaexpr #123
Conversation
ff23c7b
to
d5a1d25
Compare
@xmnlab I would just like to check with you if the from astx.callables import Argument, Arguments, LambdaExpr
from astx.datatypes import LiteralInt32, Int32
from astx.operators import BinaryOp
from astx.variables import Variable
params = Arguments(Argument(name="x", type_=Int32))
body = BinaryOp(op_code="+", lhs=Variable(name="x"), rhs=LiteralInt32(1))
lambda_expr = LambdaExpr(params=params, body=body)
lambda_expr.__str__() generates |
thanks for working on that @apkrelling ! about I just added a small comment about a very small thing .. it is just a comment in the code that I think could be removed .. other than that, this PR looks good to be merged. |
🎉 This PR is included in version 0.16.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Pull Request description
This PR adds LambdaExpr class.
This PR is an attempt to solve #104 .
__init__.py
to include the new imports and classes in the__all__
listHow to test these changes
Pull Request checklists
This PR is a:
About this PR:
Author's checklist:
complexity.
Additional information