API reference
python:astx:astx.callables.LambdaExpr
class LambdaExpr
LambdaExpr(body: Expr, params: Arguments = Arguments(), loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/callables.py:564
AST class for lambda expressions.
Attributes
-
kind — Type: ASTKind
-
params — Type: Arguments
-
body — Type: Expr
Methods
-
__init__ — Initialize the lambda expression.
-
__str__ — Return a string representation of the lambda expression.
-
get_struct — Return the AST structure of the lambda expression.