API reference
python:astx:astx.callables.LambdaExpr.__init__
method __init__
__init__(body: Expr, params: Arguments = Arguments(), loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/callables.py:503
Initialize the lambda expression.
Parameters
-
body — Statements forming the body.; Type: Expr
-
params — Params.; Type: Arguments
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None